nixpkgs/pkgs/applications/graphics/gnome-obfuscate/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
1.2 KiB
Nix
Raw Normal View History

2022-03-03 15:20:58 +01:00
{ stdenv
, lib
, fetchFromGitLab
, cargo
2022-03-03 15:20:58 +01:00
, gettext
, meson
, ninja
, pkg-config
, rustPlatform
, rustc
2022-05-31 15:55:53 +02:00
, wrapGAppsHook4
2022-03-03 15:20:58 +01:00
, appstream-glib
, desktop-file-utils
, glib
, gtk4
2023-05-03 01:37:25 +02:00
, gdk-pixbuf
2022-03-03 15:20:58 +01:00
, libadwaita
2022-10-17 14:13:28 +02:00
, Foundation
2022-03-03 15:20:58 +01:00
}:
stdenv.mkDerivation rec {
pname = "gnome-obfuscate";
2023-05-03 01:37:25 +02:00
version = "0.0.9";
2022-03-03 15:20:58 +01:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "Obfuscate";
rev = version;
2023-05-03 01:37:25 +02:00
hash = "sha256-aUhzact437V/bSsG2Ddu2mC03LbyXFg+hJiuGy5NQfQ=";
2022-03-03 15:20:58 +01:00
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
2023-05-03 01:37:25 +02:00
hash = "sha256-HUQvdCmzjdmuJGDLtC/86yzbRimLzx+XbW29f+Ua48w=";
2022-03-03 15:20:58 +01:00
};
nativeBuildInputs = [
gettext
meson
ninja
pkg-config
rustPlatform.cargoSetupHook
cargo
rustc
2022-05-31 15:55:53 +02:00
wrapGAppsHook4
2023-05-03 01:37:25 +02:00
appstream-glib
desktop-file-utils
2022-03-03 15:20:58 +01:00
];
buildInputs = [
glib
gtk4
2023-05-03 01:37:25 +02:00
gdk-pixbuf
2022-03-03 15:20:58 +01:00
libadwaita
2022-10-17 14:13:28 +02:00
] ++ lib.optionals stdenv.isDarwin [
Foundation
2022-03-03 15:20:58 +01:00
];
meta = with lib; {
description = "Censor private information";
homepage = "https://gitlab.gnome.org/World/obfuscate";
license = licenses.gpl3Plus;
platforms = platforms.all;
2023-05-03 01:37:25 +02:00
mainProgram = "obfuscate";
maintainers = with maintainers; [ fgaz ];
2022-03-03 15:20:58 +01:00
};
}