24 stdenv.mkDerivation (finalAttrs: {
25 pname = "gnome-obfuscate";
28 src = fetchFromGitLab {
29 domain = "gitlab.gnome.org";
32 rev = finalAttrs.version;
33 hash = "sha256-/Plvvn1tle8t/bsPcsamn5d81CqnyGCyGYPF6j6U5NI=";
36 cargoDeps = rustPlatform.fetchCargoTarball {
37 inherit (finalAttrs) src;
38 name = "${finalAttrs.pname}-${finalAttrs.version}";
39 hash = "sha256-9lrxK2psdIPGsOC6p8T+3AGPrX6PjrK9mFirdJqBSMM=";
42 env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
43 # Set the location to gettext to ensure the nixpkgs one on Darwin instead of the vendored one.
44 # The vendored gettext does not build with clang 16.
45 GETTEXT_BIN_DIR = "${lib.getBin buildPackages.gettext}/bin";
46 GETTEXT_INCLUDE_DIR = "${lib.getDev gettext}/include";
47 GETTEXT_LIB_DIR = "${lib.getLib gettext}/lib";
55 rustPlatform.cargoSetupHook
70 ++ lib.optionals stdenv.hostPlatform.isDarwin [
75 updateScript = nix-update-script { };
79 description = "Censor private information";
80 homepage = "https://gitlab.gnome.org/World/obfuscate";
81 license = licenses.gpl3Plus;
82 platforms = platforms.all;
83 mainProgram = "obfuscate";
84 maintainers = with maintainers; [ fgaz ] ++ lib.teams.gnome-circle.members;