Debug the command

This commit is contained in:
niten 2022-05-29 10:46:20 -07:00
parent c81571ca2d
commit 096efad499
1 changed files with 16 additions and 14 deletions

View File

@ -32,21 +32,23 @@ in stdenv.mkDerivation {
nativeBuildInputs = [ clojure ]; nativeBuildInputs = [ clojure ];
buildInputs = (map (x: x.paths) clj-deps.packages); buildInputs = (map (x: x.paths) clj-deps.packages);
buildPhase = '' buildPhase = let
HOME=$TEMP/home cmd = ''
mkdir -p $HOME HOME=$TEMP/home
mkdir -p ${target} mkdir -p $HOME
mkdir -p ${target}
clojure \ clojure \
-Scp ${classpath} \ -Scp ${classpath} \
-Sdeps ${build-tools-deps} \ -Sdeps ${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 cmd cmd;
installPhase = '' installPhase = ''
mv ${target}/${name}-${version}-standalone.jar $out mv ${target}/${name}-${version}-standalone.jar $out