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