summary refs log tree commit diff
path: root/pkgs/applications/misc/zathura
diff options
context:
space:
mode:
authorPallav Agarwal <pallavagarwal07@gmail.com>2018-02-15 13:14:40 +0530
committerPallav Agarwal <pallavagarwal07@gmail.com>2018-02-15 13:14:40 +0530
commitc0fcdb5484a303d68444ab242bc924abca424715 (patch)
tree56cd7652b852f8e8b5324d77265bfae35e56c479 /pkgs/applications/misc/zathura
parentb4841640171568abfea161d78a1da59e245139d5 (diff)
downloadnixlib-c0fcdb5484a303d68444ab242bc924abca424715.tar
nixlib-c0fcdb5484a303d68444ab242bc924abca424715.tar.gz
nixlib-c0fcdb5484a303d68444ab242bc924abca424715.tar.bz2
nixlib-c0fcdb5484a303d68444ab242bc924abca424715.tar.lz
nixlib-c0fcdb5484a303d68444ab242bc924abca424715.tar.xz
nixlib-c0fcdb5484a303d68444ab242bc924abca424715.tar.zst
nixlib-c0fcdb5484a303d68444ab242bc924abca424715.zip
Fix optional gtk-mac-integration
Diffstat (limited to 'pkgs/applications/misc/zathura')
-rw-r--r--pkgs/applications/misc/zathura/djvu/default.nix2
-rw-r--r--pkgs/applications/misc/zathura/pdf-mupdf/default.nix3
-rw-r--r--pkgs/applications/misc/zathura/pdf-poppler/default.nix2
-rw-r--r--pkgs/applications/misc/zathura/ps/default.nix2
4 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/applications/misc/zathura/djvu/default.nix b/pkgs/applications/misc/zathura/djvu/default.nix
index ba955d88c5a9..d280a10f6180 100644
--- a/pkgs/applications/misc/zathura/djvu/default.nix
+++ b/pkgs/applications/misc/zathura/djvu/default.nix
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
 
   patches = [ ./gtkflags.patch ];
 
-  patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
+  postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
     string1='-shared ''${LDFLAGS} -o $@ ''$(OBJECTS) ''${LIBS}'
     string2='-Wl,-dylib_install_name,''${PLUGIN}.dylib -Wl,-bundle_loader,${zathura_core}/bin/.zathura-wrapped -bundle ''${LDFLAGS} -o $@ ''${OBJECTS} ''${LIBS}'
     makefileC1=$(sed -r 's/\.so/.dylib/g' Makefile)
diff --git a/pkgs/applications/misc/zathura/pdf-mupdf/default.nix b/pkgs/applications/misc/zathura/pdf-mupdf/default.nix
index 932633ce32cf..1ca7644f60f8 100644
--- a/pkgs/applications/misc/zathura/pdf-mupdf/default.nix
+++ b/pkgs/applications/misc/zathura/pdf-mupdf/default.nix
@@ -15,10 +15,11 @@ stdenv.mkDerivation rec {
 
   buildInputs = [
     zathura_core gtk girara openssl mupdf libjpeg jbig2dec openjpeg
+  ] ++ stdenv.lib.optional stdenv.isDarwin [
     gtk-mac-integration
   ];
 
-  patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
+  postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
     string1='-shared ''${LDFLAGS} -o $@ ''$(OBJECTS) ''${LIBS}'
     string2='-Wl,-dylib_install_name,''${PLUGIN}.dylib -Wl,-bundle_loader,${zathura_core}/bin/.zathura-wrapped -bundle ''${LDFLAGS} -o $@ ''${OBJECTS} ''${LIBS}'
     makefileC1=$(sed -r 's/\.so/.dylib/g' Makefile)
diff --git a/pkgs/applications/misc/zathura/pdf-poppler/default.nix b/pkgs/applications/misc/zathura/pdf-poppler/default.nix
index bd01e5e8c12a..215ebdd75640 100644
--- a/pkgs/applications/misc/zathura/pdf-poppler/default.nix
+++ b/pkgs/applications/misc/zathura/pdf-poppler/default.nix
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
 
   makeFlags = [ "PREFIX=$(out)" "PLUGINDIR=$(out)/lib" ];
 
-  patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
+  postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
     string1='-shared ''${LDFLAGS} -o $@ ''$(OBJECTS) ''${LIBS}'
     string2='-Wl,-dylib_install_name,''${PLUGIN}.dylib -Wl,-bundle_loader,${zathura_core}/bin/.zathura-wrapped -bundle ''${LDFLAGS} -o $@ ''${OBJECTS} ''${LIBS}'
     makefileC1=$(sed -r 's/\.so/.dylib/g' Makefile)
diff --git a/pkgs/applications/misc/zathura/ps/default.nix b/pkgs/applications/misc/zathura/ps/default.nix
index 1872015d7e89..c324deb28e0a 100644
--- a/pkgs/applications/misc/zathura/ps/default.nix
+++ b/pkgs/applications/misc/zathura/ps/default.nix
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
 
   patches = [ ./gtkflags.patch ];
 
-  patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
+  postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
     makefileC1=$(sed -r 's/\.so/.dylib/g' Makefile)
     makefileC2=$(echo "$makefileC1" | sed 's|-shared ''${LDFLAGS} -o $@ ''$(OBJECTS) ''${LIBS}|-Wl,-dylib_install_name,''${PLUGIN}.dylib -Wl,-bundle_loader,${zathura_core}/bin/.zathura-wrapped -bundle ''${LDFLAGS} -o $@ ''${OBJECTS} ''${LIBS}|g' )
     echo "$makefileC2" > Makefile