From 4a480afde069ba97d289475ad31883d9dd1e3df8 Mon Sep 17 00:00:00 2001 From: niten Date: Sun, 29 May 2022 10:56:50 -0700 Subject: [PATCH] Nah, none of that worked. Revert. --- mkClojureLib.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mkClojureLib.nix b/mkClojureLib.nix index d08c458..b22209d 100644 --- a/mkClojureLib.nix +++ b/mkClojureLib.nix @@ -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 }: with lib; let - build-tools-deps = writeTextDir "deps.edn" '' + build-tools-deps = writeText "deps.edn" '' { :aliases { :build { :ns-default build @@ -34,15 +34,12 @@ in stdenv.mkDerivation { buildPhase = let cmd = '' HOME=$TEMP/home - BHOME=$TEMP/build-home mkdir -p $HOME mkdir -p ${target} - mkdir -p $BHOME - cp ${build-tools-deps}/deps.edn $BHOME/deps.edn clojure \ -Scp .:${build-tools-jar}:${classpath} \ - -Sdeps $BHOME/deps.edn \ + -Sdeps ${build-tool-deps} \ -X:build \ lib-uberjar \ :project ${group}/${name} \