Skip to content

Commit

Permalink
offrss: Fix for cross
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Feb 13, 2018
1 parent a5cabdb commit a26b46b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions pkgs/applications/networking/offrss/default.nix
Expand Up @@ -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 {
Expand Down

0 comments on commit a26b46b

Please sign in to comment.