summary refs log tree commit diff
path: root/pkgs/applications/networking/offrss/default.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2017-09-05 16:04:38 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-02-13 12:13:07 -0500
commita26b46bd522af040e1242946d04ecd91af7f12d6 (patch)
treeb9e0abae1bf3a86f015b1f95742d65a445e763b5 /pkgs/applications/networking/offrss/default.nix
parenta5cabdb6b11dccdc62f2085868d2d2ec40338d0b (diff)
downloadnixpkgs-a26b46bd522af040e1242946d04ecd91af7f12d6.tar
nixpkgs-a26b46bd522af040e1242946d04ecd91af7f12d6.tar.gz
nixpkgs-a26b46bd522af040e1242946d04ecd91af7f12d6.tar.bz2
nixpkgs-a26b46bd522af040e1242946d04ecd91af7f12d6.tar.lz
nixpkgs-a26b46bd522af040e1242946d04ecd91af7f12d6.tar.xz
nixpkgs-a26b46bd522af040e1242946d04ecd91af7f12d6.tar.zst
nixpkgs-a26b46bd522af040e1242946d04ecd91af7f12d6.zip
offrss: Fix for cross
Diffstat (limited to 'pkgs/applications/networking/offrss/default.nix')
-rw-r--r--pkgs/applications/networking/offrss/default.nix12
1 files changed, 4 insertions, 8 deletions
diff --git a/pkgs/applications/networking/offrss/default.nix b/pkgs/applications/networking/offrss/default.nix
index 75ed084c285..af6a4dfddc1 100644
--- a/pkgs/applications/networking/offrss/default.nix
+++ b/pkgs/applications/networking/offrss/default.nix
@@ -8,18 +8,14 @@ stdenv.mkDerivation {
     cp offrss $out/bin
   '';
 
-  crossAttrs = {
-    propagatedBuildInputs = [ curl.crossDrv libmrss.crossDrv ];
-    preConfigure = ''
-      sed 's/^PDF/#PDF/' -i Makefile
-    '';
-  };
-
-  buildInputs = [ curl libmrss podofo ]
+  buildInputs = [ curl libmrss ]
+    ++ stdenv.lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) podofo
     ++ stdenv.lib.optional (!stdenv.isLinux) libiconv;
 
   configurePhase = stdenv.lib.optionalString (!stdenv.isLinux) ''
     sed 's/#EXTRA/EXTRA/' -i Makefile
+  '' + stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
+    sed 's/^PDF/#PDF/' -i Makefile
   '';
 
   src = fetchurl {