Print out the script in use.

This commit is contained in:
niten 2022-05-30 17:02:52 -07:00
parent abb452efd4
commit 046353e691
1 changed files with 16 additions and 14 deletions

View File

@ -27,21 +27,23 @@ in stdenv.mkDerivation {
nativeBuildInputs = [ clojure jre ];
buildInputs = (map (x: x.paths) clj-deps.packages);
buildPhase = ''
HOME=$TEMP/home
mkdir -p $HOME
mkdir -p ${target}
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}
'';
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 "${builtins.trace script script}";
installPhase = ''
mv ${target}/${name}-${version}-standalone.jar $out