proper deno dep management
This commit is contained in:
parent
f937a3454d
commit
6abdf04412
11 changed files with 74 additions and 184 deletions
|
|
@ -4,13 +4,15 @@
|
|||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
deno-with-packages.url = "github:voleum-org/deno-with-packages";
|
||||
deno-with-packages.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
outputs = { self, nixpkgs, flake-utils, deno-with-packages }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
lib = import ./nix;
|
||||
lib = import ./nix // deno-with-packages.lib.${system};
|
||||
shelf = import ./shelf {
|
||||
inherit pkgs system lib;
|
||||
};
|
||||
|
|
@ -22,7 +24,7 @@
|
|||
buildInputs = [ pkgs.deno ];
|
||||
shellHook = ''
|
||||
export DENO_DIR=$PWD/.deno_cache
|
||||
${shelf.setupScript}
|
||||
${shelf.setupScript}/bin/install-deno-cache
|
||||
|
||||
echo "Availabe scrolls:"
|
||||
echo ${pkgs.lib.escapeShellArg (builtins.toJSON shelf.scrolls)} | jq .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue