From 0fcd2ad5d8bcfc8ae21734de1b15581be7178a01 Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 31 May 2022 13:17:16 -0700 Subject: [PATCH] Added update-deps.sh script for updating deps.nix --- flake.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 ]; + }; }; }