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
|
|
|
|
, libhandy
|
2020-10-16 20:44:37 +00:00
|
|
|
, libpwquality
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gobject-introspection
|
|
|
|
, desktop-file-utils
|
|
|
|
, appstream-glib }:
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-10-16 20:44:37 +00:00
|
|
|
pname = "gnome-passwordsafe";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "5.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";
|
|
|
|
repo = "PasswordSafe";
|
|
|
|
rev = version;
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "8EFKLNK7rZlYL2g/7FmaC5r5hcdblsnod/aB8NYiBvY=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
desktop-file-utils
|
|
|
|
appstream-glib
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
gdk-pixbuf
|
2021-03-09 03:18:52 +00:00
|
|
|
libhandy
|
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
|
2020-10-16 20:44:37 +00:00
|
|
|
] ++ [
|
|
|
|
libpwquality # using the python bindings
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-16 20:44:37 +00:00
|
|
|
broken = stdenv.hostPlatform.isStatic; # libpwquality doesn't provide bindings when static
|
|
|
|
description = "Password manager for GNOME which makes use of the KeePass v.4 format";
|
|
|
|
homepage = "https://gitlab.gnome.org/World/PasswordSafe";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|