about summary refs log tree commit diff
path: root/pkgs/desktops/gnustep/make
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2016-08-02 19:38:06 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2016-08-16 21:53:45 +0000
commit49bb0aa25a718742b5748fa70cd15320f09b2d1d (patch)
treec1c85806fcb8a4aff5613d6ec9763fd0a6f9d764 /pkgs/desktops/gnustep/make
parent2e5edbfd99c4eb01cdb08e6735879701dbdc2fc7 (diff)
downloadnixlib-49bb0aa25a718742b5748fa70cd15320f09b2d1d.tar
nixlib-49bb0aa25a718742b5748fa70cd15320f09b2d1d.tar.gz
nixlib-49bb0aa25a718742b5748fa70cd15320f09b2d1d.tar.bz2
nixlib-49bb0aa25a718742b5748fa70cd15320f09b2d1d.tar.lz
nixlib-49bb0aa25a718742b5748fa70cd15320f09b2d1d.tar.xz
nixlib-49bb0aa25a718742b5748fa70cd15320f09b2d1d.tar.zst
nixlib-49bb0aa25a718742b5748fa70cd15320f09b2d1d.zip
gnustep: attempt to fix osx building
Set with-layout=fhs. This should prevent OS X from having compat issues.
Diffstat (limited to 'pkgs/desktops/gnustep/make')
-rw-r--r--pkgs/desktops/gnustep/make/default.nix23
1 files changed, 18 insertions, 5 deletions
diff --git a/pkgs/desktops/gnustep/make/default.nix b/pkgs/desktops/gnustep/make/default.nix
index 43530096b534..622505864971 100644
--- a/pkgs/desktops/gnustep/make/default.nix
+++ b/pkgs/desktops/gnustep/make/default.nix
@@ -1,25 +1,38 @@
 { stdenv, fetchurl, clang, which, libobjc }:
+
 let
   version = "2.6.8";
 in
+
 stdenv.mkDerivation rec {
   name = "gnustep-make-${version}";
+
   src = fetchurl {
     url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-make-${version}.tar.gz";
     sha256 = "0r00439f7vrggdwv60n8p626gnyymhq968i5x9ad2i4v6g8x4gk0";
   };
-  configureFlags = "--with-installation-domain=SYSTEM";
+
+  configureFlags = [
+    "--with-layout=fhs-system"
+    "--disable-install-p"
+  ];
+
+  preConfigure = ''
+    configureFlags="$configureFlags --with-config-file=$out/etc/GNUstep/GNUstep.conf"
+  '';
+
+  makeFlags = [
+    "GNUSTEP_INSTALLATION_DOMAIN=SYSTEM"
+  ];
+
   buildInputs = [ clang which libobjc ];
   patches = [ ./fixup-paths.patch ];
   setupHook = ./setup-hook.sh;
   meta = {
     description = "A build manager for GNUstep";
-
     homepage = http://gnustep.org/;
-
     license = stdenv.lib.licenses.lgpl2Plus;
-
     maintainers = with stdenv.lib.maintainers; [ ashalkhakov matthewbauer ];
-    platforms = stdenv.lib.platforms.linux;
+    platforms = stdenv.lib.platforms.unix;
   };
 }