Added update-deps.sh script for updating deps.nix
This commit is contained in:
parent
5250191dc1
commit
0fcd2ad5d8
|
@ -25,6 +25,10 @@
|
|||
inherit build-tools-src;
|
||||
inherit (gitignore.lib) gitignoreSource;
|
||||
};
|
||||
clj2nix-pkg = clj2nix.packages.${system}.clj2nix;
|
||||
update-deps = pkgs.writeShellScriptBin "update-deps.sh" ''
|
||||
${clj2nix-pkg}/bin/clj2nix ${build-tools-src}/deps.edn deps.nix
|
||||
'';
|
||||
in {
|
||||
packages."${system}" = { inherit build-tools-jar; };
|
||||
defaultPackage."${system}" = self.packages."${system}".build-tools-jar;
|
||||
|
@ -32,7 +36,8 @@
|
|||
mkClojureLib =
|
||||
pkgs.callPackage ./mkClojureLib.nix { inherit (to-edn.lib) toEDN; };
|
||||
};
|
||||
devShell."${system}" =
|
||||
pkgs.mkShell { buildInputs = with pkgs; [ clojure clj2nix ]; };
|
||||
devShell."${system}" = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [ clojure clj2nix-pkg update-deps ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue