mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
offrss: Fix for cross
This commit is contained in:
parent
a5cabdb6b1
commit
a26b46bd52
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user