diff options
author | Adam Joseph <adam@westernsemico.com> | 2022-09-20 23:39:40 -0700 |
---|---|---|
committer | Adam Joseph <adam@westernsemico.com> | 2023-01-01 18:36:47 -0800 |
commit | 8fbe036fb2bf56ac5f1195a1c68d7a1641931ddf (patch) | |
tree | 68bfbcacdc21da5937309fe6381e2361a3c68573 /pkgs/development/compilers/mercury | |
parent | 8d6446d553365f3270b15c8a6c0a0462368deb73 (diff) |
mercury: use jdk_headless to allow non-gui builds
Diffstat (limited to 'pkgs/development/compilers/mercury')
-rw-r--r-- | pkgs/development/compilers/mercury/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/compilers/mercury/default.nix b/pkgs/development/compilers/mercury/default.nix index 472788bcc701f..d79c487bb2eeb 100644 --- a/pkgs/development/compilers/mercury/default.nix +++ b/pkgs/development/compilers/mercury/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, gcc, flex, bison, texinfo, jdk, erlang, makeWrapper +{ lib, stdenv, fetchurl, gcc, flex, bison, texinfo, jdk_headless, erlang, makeWrapper , readline }: stdenv.mkDerivation rec { @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ makeWrapper ]; - buildInputs = [ gcc flex bison texinfo jdk erlang readline ]; + buildInputs = [ gcc flex bison texinfo jdk_headless erlang readline ]; patchPhase = '' # Fix calls to programs in /bin @@ -37,7 +37,7 @@ stdenv.mkDerivation rec { for e in $(ls $out/bin) ; do wrapProgram $out/bin/$e \ --prefix PATH ":" "${gcc}/bin" \ - --prefix PATH ":" "${jdk}/bin" \ + --prefix PATH ":" "${jdk_headless}/bin" \ --prefix PATH ":" "${erlang}/bin" done ''; |