mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
vte: enable building with musl
VTE requires a small patch to be able to be built with musl.
This commit is contained in:
parent
33cb21574b
commit
fc265d98c7
@ -1,5 +1,7 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
|
, fetchpatch
|
||||||
, gettext
|
, gettext
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, meson
|
, meson
|
||||||
@ -58,6 +60,17 @@ stdenv.mkDerivation rec {
|
|||||||
pango
|
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 = ''
|
postPatch = ''
|
||||||
patchShebangs perf/*
|
patchShebangs perf/*
|
||||||
patchShebangs src/box_drawing_generate.sh
|
patchShebangs src/box_drawing_generate.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user