22 stdenv.mkDerivation (finalAttrs: {
23 pname = "gnome-obfuscate";
26 src = fetchFromGitLab {
27 domain = "gitlab.gnome.org";
30 rev = finalAttrs.version;
31 hash = "sha256-/Plvvn1tle8t/bsPcsamn5d81CqnyGCyGYPF6j6U5NI=";
34 cargoDeps = rustPlatform.fetchCargoTarball {
35 inherit (finalAttrs) src;
36 name = "${finalAttrs.pname}-${finalAttrs.version}";
37 hash = "sha256-9lrxK2psdIPGsOC6p8T+3AGPrX6PjrK9mFirdJqBSMM=";
40 env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
41 # Set the location to gettext to ensure the nixpkgs one on Darwin instead of the vendored one.
42 # The vendored gettext does not build with clang 16.
43 GETTEXT_BIN_DIR = "${lib.getBin buildPackages.gettext}/bin";
44 GETTEXT_INCLUDE_DIR = "${lib.getDev gettext}/include";
45 GETTEXT_LIB_DIR = "${lib.getLib gettext}/lib";
53 rustPlatform.cargoSetupHook
66 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
71 description = "Censor private information";
72 homepage = "https://gitlab.gnome.org/World/obfuscate";
73 license = licenses.gpl3Plus;
74 platforms = platforms.all;
75 mainProgram = "obfuscate";
76 maintainers = with maintainers; [ fgaz ];