3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #71577 from cdepillabout/vte-compiling-with-musl

vte: enable compiling with musl
This commit is contained in:
Niklas Hambüchen 2019-10-28 18:31:36 +01:00 committed by GitHub
commit aaddb5fe6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,7 @@
{ stdenv
, lib
, fetchurl
, fetchpatch
, gettext
, pkgconfig
, meson
@ -58,6 +60,17 @@ stdenv.mkDerivation rec {
pango
];
patches =
# VTE needs a small patch to work with musl:
# https://gitlab.gnome.org/GNOME/vte/issues/72
lib.optional
stdenv.hostPlatform.isMusl
(fetchpatch {
name = "0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch";
url = "https://gitlab.gnome.org/GNOME/vte/uploads/c334f767f5d605e0f30ecaa2a0e4d226/0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch";
sha256 = "1ii9db9i5l3fy2alxz7bjfsgjs3lappnlx339dvxbi2141zknf5r";
});
postPatch = ''
patchShebangs perf/*
patchShebangs src/box_drawing_generate.sh