...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,7 +38,8 @@ 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
build-script = writeShellScript "build.sh" ''
mkdir classes mkdir classes
HOME=. HOME=.
cp ${./src}/build.clj . cp ${./src}/build.clj .
@ -47,6 +48,7 @@ in stdenv.mkDerivation {
(map (java-compile tools-classpath) (all-namespaces ++ [ "'build" ]))} (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 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