texmacs: link with libz explicitly
This commit is contained in:
parent
510b678cb7
commit
1492dcccda
@ -24,6 +24,7 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ guile_1_8 qt4 makeWrapper ghostscriptX freetype ];
|
buildInputs = [ guile_1_8 qt4 makeWrapper ghostscriptX freetype ];
|
||||||
|
NIX_LDFLAGS = [ "-lz" ];
|
||||||
|
|
||||||
postInstall = "wrapProgram $out/bin/texmacs --suffix PATH : " +
|
postInstall = "wrapProgram $out/bin/texmacs --suffix PATH : " +
|
||||||
(if ghostscriptX == null then "" else "${ghostscriptX}/bin:") +
|
(if ghostscriptX == null then "" else "${ghostscriptX}/bin:") +
|
||||||
@ -33,12 +34,6 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
inherit (common) postPatch;
|
inherit (common) postPatch;
|
||||||
|
|
||||||
postFixup = ''
|
|
||||||
bin="$out/libexec/TeXmacs/bin/texmacs.bin"
|
|
||||||
rpath=$(patchelf --print-rpath "$bin")
|
|
||||||
patchelf --set-rpath "$rpath:${zlib.out}/lib" "$bin"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = common.meta // {
|
meta = common.meta // {
|
||||||
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
||||||
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice
|
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice
|
||||||
|
Loading…
x
Reference in New Issue
Block a user