improve shelf hiearchy
This commit is contained in:
parent
928c1067b3
commit
9c18a0c924
5 changed files with 46 additions and 18 deletions
15
flake.nix
15
flake.nix
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
description = "Deno development environment";
|
||||
description = "Grimu-R base";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
|
@ -10,23 +10,16 @@
|
|||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
denoWorkspace = import ./shelf/deno-workspace.nix {
|
||||
shelf = import ./shelf {
|
||||
inherit pkgs system;
|
||||
# collective hash of all deno sources - resulting shared deno cache hash
|
||||
knownDenoHashes = {
|
||||
"UnKGEQo7oF1X5JeWyx7w0oCwqPQ=" =
|
||||
"sha256-7csbrTbGd6J4a0Gkj9ndKhNxv90KeOHjr7DDNal3L4Q=";
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
packages.shelf = shelf;
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = [ ];
|
||||
shellHook = ''
|
||||
export DENO_DIR=$PWD/.deno_cache
|
||||
rm -rf $DENO_DIR
|
||||
cp -r ${denoWorkspace} $DENO_DIR
|
||||
chmod -R u+w "$DENO_DIR"
|
||||
${shelf.setupScript}
|
||||
'';
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue