From 6c42b8a4ef60d9f036a11659995351954d1d9249 Mon Sep 17 00:00:00 2001 From: niten Date: Mon, 30 May 2022 17:36:27 -0700 Subject: [PATCH] C'mon print this shit --- mkClojureLib.nix | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/mkClojureLib.nix b/mkClojureLib.nix index 11a9c62..a578221 100644 --- a/mkClojureLib.nix +++ b/mkClojureLib.nix @@ -19,31 +19,31 @@ let target = "$TEMP/target"; + build-script = writeShellScript "create-uberjar.sh" '' + HOME=$TEMP/home + mkdir -p $HOME + mkdir -p ${target} + + clojure \ + -Scp .:${build-tools-jar}:${classpath} \ + -Sdeps ${builtins.trace build-tools-deps build-tools-deps} \ + -X:build \ + lib-uberjar \ + :project ${group}/${name} \ + :version ${version} \ + :srcs ${concatStringsSep "," src-paths} \ + :target ${target} + ''; + in stdenv.mkDerivation { - name = builtins.trace name name; + name = name; src = src; nativeBuildInputs = [ clojure jre ]; buildInputs = (map (x: x.paths) clj-deps.packages); - buildPhase = let - script = writeShellScript "create-uberjar.sh" '' - HOME=$TEMP/home - mkdir -p $HOME - mkdir -p ${target} - - clojure \ - -Scp .:${build-tools-jar}:${classpath} \ - -Sdeps ${builtins.trace build-tools-deps build-tools-deps} \ - -X:build \ - lib-uberjar \ - :project ${group}/${name} \ - :version ${version} \ - :srcs ${concatStringsSep "," src-paths} \ - :target ${target} - ''; - script-call = "${script}"; + buildPhase = let script-call = "${script}"; in builtins.trace script-call script-call; installPhase = ''