Commit 00b9fc64 authored by Randy Eckenrode's avatar Randy Eckenrode Committed by Francesco Gazzetta
Browse files

gnome-obfuscate: use gettext from nixpkgs

The vendored gettext fails to build with clang 16 on Darwin. The gettext in nixpkgs works.
parent 4420745f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitLab
, buildPackages
, cargo
, gettext
, meson
@@ -36,6 +37,14 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-9lrxK2psdIPGsOC6p8T+3AGPrX6PjrK9mFirdJqBSMM=";
  };

  env = lib.optionalAttrs stdenv.isDarwin {
    # Set the location to gettext to ensure the nixpkgs one on Darwin instead of the vendored one.
    # The vendored gettext does not build with clang 16.
    GETTEXT_BIN_DIR = "${lib.getBin buildPackages.gettext}/bin";
    GETTEXT_INCLUDE_DIR = "${lib.getDev gettext}/include";
    GETTEXT_LIB_DIR = "${lib.getLib gettext}/lib";
  };

  nativeBuildInputs = [
    gettext
    meson