Nah, none of that worked. Revert.

This commit is contained in:
niten 2022-05-29 10:56:50 -07:00
parent e98168687b
commit 4a480afde0
1 changed files with 3 additions and 6 deletions

View File

@ -1,9 +1,9 @@
{ lib, stdenv, callPackage, clojure, build-tools-jar, writeTextDir }: { lib, stdenv, callPackage, clojure, build-tools-jar, writeText }:
{ src, name, group, version, clj-deps, src-paths }: { src, name, group, version, clj-deps, src-paths }:
with lib; with lib;
let let
build-tools-deps = writeTextDir "deps.edn" '' build-tools-deps = writeText "deps.edn" ''
{ :aliases { :aliases
{ :build { :build
{ :ns-default build { :ns-default build
@ -34,15 +34,12 @@ in stdenv.mkDerivation {
buildPhase = let buildPhase = let
cmd = '' cmd = ''
HOME=$TEMP/home HOME=$TEMP/home
BHOME=$TEMP/build-home
mkdir -p $HOME mkdir -p $HOME
mkdir -p ${target} mkdir -p ${target}
mkdir -p $BHOME
cp ${build-tools-deps}/deps.edn $BHOME/deps.edn
clojure \ clojure \
-Scp .:${build-tools-jar}:${classpath} \ -Scp .:${build-tools-jar}:${classpath} \
-Sdeps $BHOME/deps.edn \ -Sdeps ${build-tool-deps} \
-X:build \ -X:build \
lib-uberjar \ lib-uberjar \
:project ${group}/${name} \ :project ${group}/${name} \