diff --git a/mkClojureLib.nix b/mkClojureLib.nix index 5adcf86..bddaf55 100644 --- a/mkClojureLib.nix +++ b/mkClojureLib.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, callPackage, jre, ruby, clojure, build-tools-jar, writeScript +{ lib, stdenv, callPackage, jre, clojure, build-tools-jar, writeScript , writeText }: { src, name, group, version, clj-deps, src-paths }: @@ -42,14 +42,16 @@ in stdenv.mkDerivation { HOME=$TEMP/home mkdir -p $HOME mkdir -p ${target} - ${uberjar-script} - --root=$PWD \ - --classpath=${classpath} \ - --target=${target} \ - --project=${group}/${name} \ - --version=${version} \ - --build-deps=${built-tools-deps} \ - --source-paths=${concatStringsSep "," src-paths} + + clojure \ + -Scp ${classpath} \ + -Sdeps ${build-tools-deps} \ + -T:build \ + lib-uberjar \ + :project ${group}/${name} \ + :version ${version}" \ + :srcs ${concatStringsSep "," src-paths}" + :target ${target} ''; installPhase = ''