diff --git a/flake.nix b/flake.nix index 1bb9dd4..3296ee0 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ]; + }; }; }