Add nix flake devShell

This commit is contained in:
Jeremy Wall 2022-05-13 21:30:50 -04:00
parent b9e5ebd705
commit 863744d812
2 changed files with 14 additions and 0 deletions

View File

@ -60,6 +60,9 @@
type = "app";
program = "${kitchen}/bin/kitchen";
};
devShell = pkgs.mkShell {
buildInputs = [ trunk rust-wasm ];
};
}
);
}

11
shell.nix Normal file
View File

@ -0,0 +1,11 @@
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in
(import (
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
) {
src = ./.;
}).devShell