intltool: fix cross-platform build
This commit is contained in:
parent
ccde657295
commit
e7208291d2
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, gettext, perlPackages }:
|
{ stdenv, fetchurl, fetchpatch, gettext, perlPackages, buildPackages }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "intltool";
|
pname = "intltool";
|
||||||
@ -19,8 +19,14 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "12q2140867r5d0dysly72khi7b0mm2gd7nlm1k81iyg7fxgnyz45";
|
sha256 = "12q2140867r5d0dysly72khi7b0mm2gd7nlm1k81iyg7fxgnyz45";
|
||||||
})];
|
})];
|
||||||
|
|
||||||
propagatedBuildInputs = [ gettext ] ++ (with perlPackages; [ perl XMLParser ]);
|
nativeBuildInputs = with perlPackages; [ perl XMLParser ];
|
||||||
|
propagatedBuildInputs = [ gettext ];
|
||||||
|
|
||||||
|
postInstall = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
||||||
|
for f in $out/bin/*; do
|
||||||
|
substituteInPlace $f --replace "${buildPackages.perl}" "${perlPackages.perl}"
|
||||||
|
done
|
||||||
|
'';
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Translation helper tool";
|
description = "Translation helper tool";
|
||||||
homepage = "https://launchpad.net/intltool/";
|
homepage = "https://launchpad.net/intltool/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user