diff options
author | Kevin Cox <kevincox@kevincox.ca> | 2022-03-14 12:12:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 12:12:53 -0400 |
commit | 318bb3330897af9bce84b118564b9ec02af8f500 (patch) | |
tree | a8c1a1236283bfd38cf1c83575026cb7572aece8 /pkgs/applications | |
parent | 3f51820f399b15ff34927f1a1de550ada73feed4 (diff) | |
parent | fb3ef16f527767c7e61c06c1209344f72a9236b6 (diff) | |
download | nixpkgs-318bb3330897af9bce84b118564b9ec02af8f500.tar nixpkgs-318bb3330897af9bce84b118564b9ec02af8f500.tar.gz nixpkgs-318bb3330897af9bce84b118564b9ec02af8f500.tar.bz2 nixpkgs-318bb3330897af9bce84b118564b9ec02af8f500.tar.lz nixpkgs-318bb3330897af9bce84b118564b9ec02af8f500.tar.xz nixpkgs-318bb3330897af9bce84b118564b9ec02af8f500.tar.zst nixpkgs-318bb3330897af9bce84b118564b9ec02af8f500.zip |
Merge pull request #162664 from fgaz/obfuscate/init
obfuscate: init at 0.0.4
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/graphics/gnome-obfuscate/default.nix | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/gnome-obfuscate/default.nix b/pkgs/applications/graphics/gnome-obfuscate/default.nix new file mode 100644 index 00000000000..8cb4208e267 --- /dev/null +++ b/pkgs/applications/graphics/gnome-obfuscate/default.nix @@ -0,0 +1,70 @@ +{ stdenv +, lib +, fetchFromGitLab + +, gettext +, meson +, ninja +, pkg-config +, python3 +, rustPlatform +, wrapGAppsHook + +, appstream-glib +, desktop-file-utils +, glib +, gtk4 +, libadwaita +}: + +stdenv.mkDerivation rec { + pname = "gnome-obfuscate"; + version = "0.0.4"; + + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "World"; + repo = "Obfuscate"; + rev = version; + sha256 = "sha256-P8Y2Eizn1BMZXuFjGMXF/3oAUzI8ZNTrnbLyU+V6uk4="; + }; + + cargoDeps = rustPlatform.fetchCargoTarball { + inherit src; + name = "${pname}-${version}"; + sha256 = "sha256-5MzWz5NH2sViIfaP8xOQLreEal5TYkji11VaUgieT3U="; + }; + + nativeBuildInputs = [ + gettext + glib + meson + ninja + pkg-config + python3 + rustPlatform.cargoSetupHook + rustPlatform.rust.cargo + rustPlatform.rust.rustc + wrapGAppsHook + ]; + + buildInputs = [ + appstream-glib + desktop-file-utils + glib + gtk4 + libadwaita + ]; + + postPatch = '' + patchShebangs build-aux/meson_post_install.py + ''; + + meta = with lib; { + description = "Censor private information"; + homepage = "https://gitlab.gnome.org/World/obfuscate"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ fgaz ]; + platforms = platforms.all; + }; +} |