21 lines
677 B
Nix
21 lines
677 B
Nix
{
|
|
description = "A prisma test project";
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/master";
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system: let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
devShells.default = pkgs.mkShell {
|
|
nativeBuildInputs = [ pkgs.bashInteractive ];
|
|
buildInputs = with pkgs; [
|
|
deno
|
|
];
|
|
shellHook = with pkgs; ''
|
|
alias build="deno bundle --platform=browser index.html --outdir dist"
|
|
alias serve="deno run -ENR jsr:@std/http/file-server dist/"
|
|
'';
|
|
};
|
|
});
|
|
}
|