Skip to content

Commit

Permalink
gtkgreet: fix cross-compilation
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander V. Nikolaev <[email protected]>
  • Loading branch information
avnik committed Oct 26, 2024
1 parent ac934fe commit b62e4a1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/applications/display-managers/greetd/gtkgreet.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
, json_c
, librsvg
, scdoc
, buildPackages
}:

let
isCross = stdenv.hostPlatform != stdenv.buildPlatform;
in
stdenv.mkDerivation rec {
pname = "gtkgreet";
version = "0.8";
Expand All @@ -24,26 +28,32 @@ stdenv.mkDerivation rec {
sha256 = "sha256-GKBYql0hzqB6uY87SsAqHwf3qLAr7xznMnAjRtP4HS8=";
};

depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [
pkg-config
meson
ninja
cmake
scdoc
wrapGAppsHook3
];

buildInputs = [
gtk3
gtk-layer-shell
json_c
scdoc
librsvg
];

mesonFlags = [
"-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";

Expand Down

0 comments on commit b62e4a1

Please sign in to comment.