offrss: Fix for cross

This commit is contained in:
John Ericson 2017-09-05 16:04:38 -04:00
parent a5cabdb6b1
commit a26b46bd52

View File

@ -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 {