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 ]; nativeBuildInputs = [ clojure jre ];
buildInputs = (map (x: x.paths) clj-deps.packages); buildInputs = (map (x: x.paths) clj-deps.packages);
buildPhase = '' buildPhase = let
HOME=$TEMP/home script = writeShellScript "create-uberjar.sh" ''
mkdir -p $HOME HOME=$TEMP/home
mkdir -p ${target} mkdir -p $HOME
mkdir -p ${target}
clojure \ clojure \
-Scp .:${build-tools-jar}:${classpath} \ -Scp .:${build-tools-jar}:${classpath} \
-Sdeps ${builtins.trace build-tools-deps build-tools-deps} \ -Sdeps ${builtins.trace build-tools-deps build-tools-deps} \
-X:build \ -X:build \
lib-uberjar \ lib-uberjar \
:project ${group}/${name} \ :project ${group}/${name} \
:version ${version} \ :version ${version} \
:srcs ${concatStringsSep "," src-paths} \ :srcs ${concatStringsSep "," src-paths} \
:target ${target} :target ${target}
''; '';
in "${builtins.trace script script}";
installPhase = '' installPhase = ''
mv ${target}/${name}-${version}-standalone.jar $out mv ${target}/${name}-${version}-standalone.jar $out