...Why is it working now?

This commit is contained in:
niten 2022-05-31 14:16:13 -07:00
parent de3b774a77
commit da554a2ba0
1 changed files with 13 additions and 11 deletions

View File

@ -1,5 +1,5 @@
{ lib, stdenv, build-tools-src, clojure, callPackage, writeText, gitignoreSource { lib, stdenv, build-tools-src, clojure, callPackage, writeText
, jre, ... }: , writeShellScript, gitignoreSource, jre, ... }:
with lib; with lib;
let let
@ -38,15 +38,17 @@ in stdenv.mkDerivation {
src = gitignoreSource "${build-tools-src}/src/main/clojure"; src = gitignoreSource "${build-tools-src}/src/main/clojure";
nativeBuildInputs = [ jre ]; nativeBuildInputs = [ jre ];
buildInputs = map (x: x.paths) cljdeps.packages; buildInputs = map (x: x.paths) cljdeps.packages;
buildPhase = '' buildPhase = let
mkdir classes build-script = writeShellScript "build.sh" ''
HOME=. mkdir classes
cp ${./src}/build.clj . HOME=.
${concatStringsSep "\n" (map extract-jar dep-jars)} cp ${./src}/build.clj .
${concatStringsSep "\n" ${concatStringsSep "\n" (map extract-jar dep-jars)}
(map (java-compile tools-classpath) (all-namespaces ++ [ "'build" ]))} ${concatStringsSep "\n"
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 (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
'';
in "${build-script}";
installPhase = '' installPhase = ''
cp out.jar $out cp out.jar $out