mercury: use jdk_headless to allow non-gui builds

This commit is contained in:
Adam Joseph 2022-09-20 23:39:40 -07:00
parent 8d6446d553
commit 8fbe036fb2
2 changed files with 6 additions and 4 deletions

View file

@ -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
'';

View file

@ -15024,7 +15024,9 @@ with pkgs;
marst = callPackage ../development/compilers/marst { };
mercury = callPackage ../development/compilers/mercury { };
mercury = callPackage ../development/compilers/mercury {
jdk_headless = openjdk8_headless; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
};
microscheme = callPackage ../development/compilers/microscheme { };