Unverified Commit 5b5e9be6 authored by Alexander V. Nikolaev's avatar Alexander V. Nikolaev
Browse files

gtkgreet: fix cross-compilation

parent ac934fe4
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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";