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 build-tools-src;
|
||||||
inherit (gitignore.lib) gitignoreSource;
|
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 {
|
in {
|
||||||
packages."${system}" = { inherit build-tools-jar; };
|
packages."${system}" = { inherit build-tools-jar; };
|
||||||
defaultPackage."${system}" = self.packages."${system}".build-tools-jar;
|
defaultPackage."${system}" = self.packages."${system}".build-tools-jar;
|
||||||
|
@ -32,7 +36,8 @@
|
||||||
mkClojureLib =
|
mkClojureLib =
|
||||||
pkgs.callPackage ./mkClojureLib.nix { inherit (to-edn.lib) toEDN; };
|
pkgs.callPackage ./mkClojureLib.nix { inherit (to-edn.lib) toEDN; };
|
||||||
};
|
};
|
||||||
devShell."${system}" =
|
devShell."${system}" = pkgs.mkShell {
|
||||||
pkgs.mkShell { buildInputs = with pkgs; [ clojure clj2nix ]; };
|
buildInputs = with pkgs; [ clojure clj2nix-pkg update-deps ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue