mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
Merge pull request #97093 from kampka/texi2html
texi2html: Fix cross-platform build
This commit is contained in:
commit
47d121591c
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, perl, gettext }:
|
{ stdenv, fetchurl, perl, gettext, buildPackages }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "texi2html";
|
pname = "texi2html";
|
||||||
@ -9,12 +9,19 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1yprv64vrlcbksqv25asplnjg07mbq38lfclp1m5lj8cw878pag8";
|
sha256 = "1yprv64vrlcbksqv25asplnjg07mbq38lfclp1m5lj8cw878pag8";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ gettext ];
|
strictDeps = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ gettext perl ];
|
||||||
buildInputs = [ perl ];
|
buildInputs = [ perl ];
|
||||||
|
|
||||||
preBuild = ''
|
postPatch = ''
|
||||||
substituteInPlace separated_to_hash.pl \
|
patchShebangs separated_to_hash.pl
|
||||||
--replace "/usr/bin/perl" "${perl}/bin/perl"
|
'';
|
||||||
|
|
||||||
|
postInstall = stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
||||||
|
for f in $out/bin/*; do
|
||||||
|
substituteInPlace $f --replace "${buildPackages.perl}" "${perl}"
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user