Skip to content

Commit

Permalink
minimised size of jre on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
goodlyrottenapple committed Oct 20, 2023
1 parent c05b9ac commit 9d8ca8e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nix/k.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ src, clang, stdenv, lib, mavenix, runCommand, makeWrapper, bison, flex, gcc
, git, gmp, jre_minimal, mpfr, ncurses, pkgconfig, python3, z3, haskell-backend, booster ? null
, prelude-kore, llvm-backend, debugger, version, llvm-kompile-libs }:
, git, gmp, jdk, jre_minimal, mpfr, ncurses, pkgconfig, python3, z3
, haskell-backend, booster ? null, prelude-kore, llvm-backend, debugger, version
, llvm-kompile-libs }:

let
unwrapped = mavenix.buildMaven {
Expand Down Expand Up @@ -52,7 +53,8 @@ let
ln -sf ${llvm-backend}/lib/kllvm $out/lib/
ln -sf ${llvm-backend}/lib/scripts $out/lib/
ln -sf ${llvm-backend}/bin/* $out/bin/
${lib.optionalString (booster != null ) "ln -sf ${booster}/bin/* $out/bin/"}
${lib.optionalString (booster != null)
"ln -sf ${booster}/bin/* $out/bin/"}
prelude_kore="$out/include/kframework/kore/prelude.kore"
mkdir -p "$(dirname "$prelude_kore")"
Expand All @@ -75,7 +77,7 @@ in let
flex
(if stdenv.isDarwin then clang else gcc)
gmp
jre_minimal
(jre_minimal.override { jdk = jdk.override { headless = true; }; })
mpfr
ncurses
pkgconfig
Expand Down

0 comments on commit 9d8ca8e

Please sign in to comment.