C'mon print this shit
This commit is contained in:
parent
c0550af475
commit
6c42b8a4ef
|
@ -19,31 +19,31 @@ let
|
||||||
|
|
||||||
target = "$TEMP/target";
|
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 {
|
in stdenv.mkDerivation {
|
||||||
name = builtins.trace name name;
|
name = name;
|
||||||
|
|
||||||
src = src;
|
src = src;
|
||||||
|
|
||||||
nativeBuildInputs = [ clojure jre ];
|
nativeBuildInputs = [ clojure jre ];
|
||||||
buildInputs = (map (x: x.paths) clj-deps.packages);
|
buildInputs = (map (x: x.paths) clj-deps.packages);
|
||||||
|
|
||||||
buildPhase = let
|
buildPhase = let script-call = "${script}";
|
||||||
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}";
|
|
||||||
in builtins.trace script-call script-call;
|
in builtins.trace script-call script-call;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
Loading…
Reference in New Issue