nixpkgs/pkgs/applications/misc/gnome-secrets/default.nix

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

73 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-09-15 12:09:42 +00:00
, meson
, ninja
, pkg-config
, gettext
, fetchFromGitLab
2021-03-02 01:59:00 +00:00
, python3Packages
, wrapGAppsHook4
, gtk4
2020-09-15 12:09:42 +00:00
, glib
, gdk-pixbuf
, gobject-introspection
, desktop-file-utils
, appstream-glib
, libadwaita }:
2020-09-15 12:09:42 +00:00
2021-03-02 01:59:00 +00:00
python3Packages.buildPythonApplication rec {
pname = "gnome-secrets";
version = "7.2";
2020-09-15 12:09:42 +00:00
format = "other";
strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
2021-12-07 21:01:43 +00:00
repo = "secrets";
2020-09-15 12:09:42 +00:00
rev = version;
hash = "sha256-CE0iuXYHBhu07mjfXCnAPZQUD1Wy95L+tvBT+uepbrk=";
2020-09-15 12:09:42 +00:00
};
nativeBuildInputs = [
meson
ninja
gettext
pkg-config
wrapGAppsHook4
2020-09-15 12:09:42 +00:00
desktop-file-utils
appstream-glib
gobject-introspection
];
buildInputs = [
gtk4
2020-09-15 12:09:42 +00:00
glib
gdk-pixbuf
libadwaita
2020-09-15 12:09:42 +00:00
];
2021-03-02 01:59:00 +00:00
propagatedBuildInputs = with python3Packages; [
2020-09-15 12:09:42 +00:00
pygobject3
construct
2021-03-02 01:59:00 +00:00
pykeepass
pyotp
2022-11-18 17:58:17 +00:00
validators
zxcvbn
2020-09-15 12:09:42 +00:00
];
# Prevent double wrapping, let the Python wrapper use the args in preFixup.
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = with lib; {
2020-09-15 12:09:42 +00:00
description = "Password manager for GNOME which makes use of the KeePass v.4 format";
2021-12-07 21:01:43 +00:00
homepage = "https://gitlab.gnome.org/World/secrets";
2020-09-15 12:09:42 +00:00
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ mvnetbiz ];
};
}