Skip to content

Commit

Permalink
vte: enable building with musl
Browse files Browse the repository at this point in the history
VTE requires a small patch to be able to be built with musl.
  • Loading branch information
cdepillabout authored and nh2 committed Oct 28, 2019
1 parent 33cb215 commit fc265d9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkgs/development/libraries/vte/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{ stdenv
, lib
, fetchurl
, fetchpatch
, gettext
, pkgconfig
, meson
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fc265d9

Please sign in to comment.