cwebbin: fix build on darwin and fix cross-compilation
This commit is contained in:
parent
a48cf5c9ad
commit
d727b87f5a
@ -16,7 +16,15 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1hdzxfzaibnjxjzgp6d2zay8nsarnfy9hfq55hz1bxzzl23n35aj";
|
sha256 = "1hdzxfzaibnjxjzgp6d2zay8nsarnfy9hfq55hz1bxzzl23n35aj";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ tie ];
|
# Remove references to __DATE__ and __TIME__
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace wmerg-patch.ch --replace ' ("__DATE__", "__TIME__")' ""
|
||||||
|
substituteInPlace ctang-patch.ch --replace ' ("__DATE__", "__TIME__")' ""
|
||||||
|
substituteInPlace ctangle.cxx --replace ' ("__DATE__", "__TIME__")' ""
|
||||||
|
substituteInPlace cweav-patch.ch --replace ' ("__DATE__", "__TIME__")' ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ tie ];
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"MACROSDIR=$(out)/share/texmf/tex/generic/cweb"
|
"MACROSDIR=$(out)/share/texmf/tex/generic/cweb"
|
||||||
@ -27,7 +35,7 @@ stdenv.mkDerivation rec {
|
|||||||
"CP=cp"
|
"CP=cp"
|
||||||
"RM=rm"
|
"RM=rm"
|
||||||
"PDFTEX=echo"
|
"PDFTEX=echo"
|
||||||
"CC=c++"
|
"CC=${stdenv.cc.targetPrefix}c++"
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user