Merge pull request #61483 from lilyball/unison
unison: fix building on macOS with enableX11 = false
This commit is contained in:
commit
23f8de06fb
1 changed files with 4 additions and 2 deletions
|
@ -20,8 +20,10 @@ stdenv.mkDerivation (rec {
|
|||
echo -e '\ninstall:\n\tcp $(FSMONITOR)$(EXEC_EXT) $(INSTALLDIR)' >> src/fsmonitor/linux/Makefile
|
||||
'';
|
||||
|
||||
makeFlags = "INSTALLDIR=$(out)/bin/" + (if enableX11 then " UISTYLE=gtk2" else "")
|
||||
+ (if ! ocaml.nativeCompilers then " NATIVE=false" else "");
|
||||
makeFlags = [
|
||||
"INSTALLDIR=$(out)/bin/"
|
||||
"UISTYLE=${if enableX11 then "gtk2" else "text"}"
|
||||
] ++ stdenv.lib.optional (!ocaml.nativeCompilers) "NATIVE=false";
|
||||
|
||||
preInstall = "mkdir -p $out/bin";
|
||||
|
||||
|
|
Loading…
Reference in a new issue