mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
gtkgreet: fix cross-compilation (#351481)
This commit is contained in:
commit
ae9f64a37b
@ -24,11 +24,13 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-GKBYql0hzqB6uY87SsAqHwf3qLAr7xznMnAjRtP4HS8=";
|
||||
};
|
||||
|
||||
depsBuildBuild = [ pkg-config ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
meson
|
||||
ninja
|
||||
cmake
|
||||
scdoc
|
||||
wrapGAppsHook3
|
||||
];
|
||||
|
||||
@ -36,7 +38,6 @@ stdenv.mkDerivation rec {
|
||||
gtk3
|
||||
gtk-layer-shell
|
||||
json_c
|
||||
scdoc
|
||||
librsvg
|
||||
];
|
||||
|
||||
@ -44,6 +45,11 @@ stdenv.mkDerivation rec {
|
||||
"-Dlayershell=enabled"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace meson.build \
|
||||
--replace "dependency('scdoc'," "dependency('scdoc', native:true,"
|
||||
'';
|
||||
|
||||
# G_APPLICATION_FLAGS_NONE is deprecated in GLib 2.73.3+.
|
||||
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user