chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / applications / graphics / gnome-obfuscate / default.nix
blobdb173f58b54e66ea5e5db1d83923e2e5f76f5fb2
1 { stdenv
2 , lib
3 , fetchFromGitLab
4 , buildPackages
5 , cargo
6 , gettext
7 , meson
8 , ninja
9 , pkg-config
10 , rustPlatform
11 , rustc
12 , wrapGAppsHook4
13 , appstream-glib
14 , desktop-file-utils
15 , glib
16 , gtk4
17 , gdk-pixbuf
18 , libadwaita
19 , Foundation
22 stdenv.mkDerivation (finalAttrs: {
23   pname = "gnome-obfuscate";
24   version = "0.0.10";
26   src = fetchFromGitLab {
27     domain = "gitlab.gnome.org";
28     owner = "World";
29     repo = "Obfuscate";
30     rev = finalAttrs.version;
31     hash = "sha256-/Plvvn1tle8t/bsPcsamn5d81CqnyGCyGYPF6j6U5NI=";
32   };
34   cargoDeps = rustPlatform.fetchCargoTarball {
35     inherit (finalAttrs) src;
36     name = "${finalAttrs.pname}-${finalAttrs.version}";
37     hash = "sha256-9lrxK2psdIPGsOC6p8T+3AGPrX6PjrK9mFirdJqBSMM=";
38   };
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";
46   };
48   nativeBuildInputs = [
49     gettext
50     meson
51     ninja
52     pkg-config
53     rustPlatform.cargoSetupHook
54     cargo
55     rustc
56     wrapGAppsHook4
57     appstream-glib
58     desktop-file-utils
59   ];
61   buildInputs = [
62     glib
63     gtk4
64     gdk-pixbuf
65     libadwaita
66   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
67     Foundation
68   ];
70   meta = with lib; {
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 ];
77   };