Use new to-edn function to generate config.
This commit is contained in:
+9
-4
@@ -1,11 +1,16 @@
|
||||
{ lib, stdenv, callPackage, clojure, build-tools-jar, writeText }:
|
||||
{ lib, stdenv, callPackage, clojure, build-tools-jar, writeText, toEDN }:
|
||||
{ src, name, group, version, clj-deps, src-paths }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
|
||||
build-tools-deps = ''
|
||||
{ :aliases { :build { :ns-build build :replace-deps { io.github.clojure/tools.build { :local/root "${build-tools-jar}" } } } } }'';
|
||||
build-tools-deps = toEDN {
|
||||
aliases.build = {
|
||||
ns-build = "'build";
|
||||
replace-deps."'io.github.clojure/tools.build"."local/root" =
|
||||
"${build-tools-jar}";
|
||||
};
|
||||
};
|
||||
|
||||
classpath = clj-deps.makeClasspaths { };
|
||||
|
||||
@@ -28,7 +33,7 @@ in stdenv.mkDerivation {
|
||||
|
||||
clojure \
|
||||
-Scp .:${build-tools-jar}:${classpath} \
|
||||
-Sdeps ${build-tools-deps} \
|
||||
-Sdeps ${builtins.trace build-tools-deps build-tools-deps} \
|
||||
-X:build \
|
||||
lib-uberjar \
|
||||
:project ${group}/${name} \
|
||||
|
||||
Reference in New Issue
Block a user