diff options
author | Niklas Hambüchen <mail@nh2.me> | 2019-10-28 18:31:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-28 18:31:36 +0100 |
commit | aaddb5fe6b59fa7154580fc48debfd090355ea44 (patch) | |
tree | 37bf6a1785e24dcc26ede1323d07e530ca22ad09 /pkgs | |
parent | 664823c11c0c3ac20d498c57911b98e85e64f8b8 (diff) | |
parent | fc265d98c7ca877a669777c9a4aaa5c1bf2ea847 (diff) |
Merge pull request #71577 from cdepillabout/vte-compiling-with-musl
vte: enable compiling with musl
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/vte/default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/libraries/vte/default.nix b/pkgs/development/libraries/vte/default.nix index 0d5686ccc0a3..c1774e2c828e 100644 --- a/pkgs/development/libraries/vte/default.nix +++ b/pkgs/development/libraries/vte/default.nix @@ -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 |