Added update-deps.sh script for updating deps.nix

This commit is contained in:
niten 2022-05-31 13:17:16 -07:00
parent 5250191dc1
commit 0fcd2ad5d8
1 changed files with 7 additions and 2 deletions

View File

@ -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 ];
};
};
}