2021-01-11 07:54:33 +00:00
|
|
|
{ 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
|
2022-01-19 13:55:04 +00:00
|
|
|
, wrapGAppsHook4
|
|
|
|
, gtk4
|
2020-09-15 12:09:42 +00:00
|
|
|
, glib
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gobject-introspection
|
|
|
|
, desktop-file-utils
|
2022-01-19 13:55:04 +00:00
|
|
|
, appstream-glib
|
|
|
|
, libadwaita }:
|
2020-09-15 12:09:42 +00:00
|
|
|
|
2021-03-02 01:59:00 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2022-01-19 13:55:04 +00:00
|
|
|
pname = "gnome-secrets";
|
2023-01-12 04:01:08 +00:00
|
|
|
version = "7.2";
|
2020-09-15 12:09:42 +00:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
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;
|
2023-01-12 04:01:08 +00:00
|
|
|
hash = "sha256-CE0iuXYHBhu07mjfXCnAPZQUD1Wy95L+tvBT+uepbrk=";
|
2020-09-15 12:09:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
pkg-config
|
2022-01-19 13:55:04 +00:00
|
|
|
wrapGAppsHook4
|
2020-09-15 12:09:42 +00:00
|
|
|
desktop-file-utils
|
|
|
|
appstream-glib
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-01-19 13:55:04 +00:00
|
|
|
gtk4
|
2020-09-15 12:09:42 +00:00
|
|
|
glib
|
|
|
|
gdk-pixbuf
|
2022-01-19 13:55:04 +00:00
|
|
|
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
|
2022-01-19 13:55:04 +00:00
|
|
|
pyotp
|
2022-11-18 17:58:17 +00:00
|
|
|
validators
|
|
|
|
zxcvbn
|
2020-09-15 12:09:42 +00:00
|
|
|
];
|
|
|
|
|
2022-01-19 13:55:04 +00:00
|
|
|
# Prevent double wrapping, let the Python wrapper use the args in preFixup.
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|