It's not because the changes aren't committed, right?

This commit is contained in:
niten 2022-05-31 13:51:17 -07:00
parent 0fcd2ad5d8
commit de3b774a77
1 changed files with 7 additions and 6 deletions

View File

@ -7,8 +7,8 @@ let
version = "0.8.2";
full-name = "${base-name}-${version}.jar";
cljdeps = callPackage ./deps.nix { };
classpath = cljdeps.makeClasspaths { };
dep-jars = splitString ":" classpath;
tools-classpath = cljdeps.makeClasspaths { };
dep-jars = splitString ":" tools-classpath;
extract-jar = jar: "jar -xf ${jar}";
manifest = writeText "MANIFEST.MF" ''
@ -18,8 +18,8 @@ let
pthru = o: builtins.trace o o;
java-compile = ns:
''java -cp .:${./src}:${classpath} clojure.main -e "(compile ${ns})"'';
java-compile = classpath: ns:
''java -cp .:${classpath} clojure.main -e "(compile ${ns})"'';
head-or-null = lst: if (lst == [ ]) then null else head lst;
matches-ext = ext: filename: type:
(builtins.match ".+[.]${ext}$" filename) != null;
@ -41,9 +41,10 @@ in stdenv.mkDerivation {
buildPhase = ''
mkdir classes
HOME=.
cp ${./src}/build.clj .
${concatStringsSep "\n" (map extract-jar dep-jars)}
${concatStringsSep "\n" (map java-compile all-namespaces)}
${java-compile "'build"}
${concatStringsSep "\n"
(map (java-compile tools-classpath) (all-namespaces ++ [ "'build" ]))}
jar cmf ${manifest} ./out.jar -C . cljs cognitect com javax mozilla plugin.xml about.html clojure cognitect_aws_http.edn data_readers.cljc licenses org
'';