From 096efad499c9d6632560ffbb8ece8e933bb1116c Mon Sep 17 00:00:00 2001 From: niten Date: Sun, 29 May 2022 10:46:20 -0700 Subject: [PATCH] Debug the command --- mkClojureLib.nix | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/mkClojureLib.nix b/mkClojureLib.nix index 440136a..9b0910d 100644 --- a/mkClojureLib.nix +++ b/mkClojureLib.nix @@ -32,21 +32,23 @@ in stdenv.mkDerivation { nativeBuildInputs = [ clojure ]; buildInputs = (map (x: x.paths) clj-deps.packages); - buildPhase = '' - HOME=$TEMP/home - mkdir -p $HOME - mkdir -p ${target} + buildPhase = let + cmd = '' + HOME=$TEMP/home + mkdir -p $HOME + mkdir -p ${target} - clojure \ - -Scp ${classpath} \ - -Sdeps ${build-tools-deps} \ - -X:build \ - lib-uberjar \ - :project ${group}/${name} \ - :version ${version}" \ - :srcs ${concatStringsSep "," src-paths}" \ - :target ${target} - ''; + clojure \ + -Scp ${classpath} \ + -Sdeps ${build-tools-deps} \ + -X:build \ + lib-uberjar \ + :project ${group}/${name} \ + :version ${version}" \ + :srcs ${concatStringsSep "," src-paths}" \ + :target ${target} + ''; + in builtins.trace cmd cmd; installPhase = '' mv ${target}/${name}-${version}-standalone.jar $out