summary refs log tree commit diff
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2018-01-19 00:26:03 -0500
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2018-01-20 18:20:47 -0500
commit88b485a0627070a7cb432f63014a8eae62e94655 (patch)
tree3c2a01510a963cd707e92f445288369c0bd677a1
parent4dff3ee959035fadc77b0c2ac949a006b4249b20 (diff)
downloadnixpkgs-88b485a0627070a7cb432f63014a8eae62e94655.tar
nixpkgs-88b485a0627070a7cb432f63014a8eae62e94655.tar.gz
nixpkgs-88b485a0627070a7cb432f63014a8eae62e94655.tar.bz2
nixpkgs-88b485a0627070a7cb432f63014a8eae62e94655.tar.lz
nixpkgs-88b485a0627070a7cb432f63014a8eae62e94655.tar.xz
nixpkgs-88b485a0627070a7cb432f63014a8eae62e94655.tar.zst
nixpkgs-88b485a0627070a7cb432f63014a8eae62e94655.zip
deadpixi-sam: fix on Darwin
-rw-r--r--pkgs/applications/editors/deadpixi-sam/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/applications/editors/deadpixi-sam/default.nix b/pkgs/applications/editors/deadpixi-sam/default.nix
index d1ed4826c68..56aa90dd205 100644
--- a/pkgs/applications/editors/deadpixi-sam/default.nix
+++ b/pkgs/applications/editors/deadpixi-sam/default.nix
@@ -15,9 +15,11 @@ stdenv.mkDerivation rec {
 
   postPatch = ''
     substituteInPlace config.mk.def \
-      --replace "/usr/include/freetype2" "${freetype.dev}/include/freetype2"
+      --replace "/usr/include/freetype2" "${freetype.dev}/include/freetype2" \
+      --replace "CC=gcc" ""
   '';
 
+  CFLAGS = "-D_DARWIN_C_SOURCE";
   makeFlags = [ "DESTDIR=$(out)" ];
   buildInputs = [ libX11 libXt libXft ];
 
@@ -31,6 +33,6 @@ stdenv.mkDerivation rec {
     description = "Updated version of the sam text editor";
     license = with licenses; lpl-102;
     maintainers = with maintainers; [ ramkromberg ];
-    platforms = with platforms; linux;
+    platforms = with platforms; unix;
   };
 }