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

68 lines
1.3 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
, libhandy
2020-09-15 12:09:42 +00:00
, libpwquality
, wrapGAppsHook
, gtk3
, glib
, gdk-pixbuf
, gobject-introspection
, desktop-file-utils
, appstream-glib }:
2021-03-02 01:59:00 +00:00
python3Packages.buildPythonApplication rec {
2020-09-15 12:09:42 +00:00
pname = "gnome-passwordsafe";
2021-03-02 01:59:00 +00:00
version = "5.0";
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";
repo = "PasswordSafe";
rev = version;
2021-03-02 01:59:00 +00:00
sha256 = "8EFKLNK7rZlYL2g/7FmaC5r5hcdblsnod/aB8NYiBvY=";
2020-09-15 12:09:42 +00:00
};
nativeBuildInputs = [
meson
ninja
gettext
pkg-config
wrapGAppsHook
desktop-file-utils
appstream-glib
gobject-introspection
];
buildInputs = [
gtk3
glib
gdk-pixbuf
2021-03-02 01:59:00 +00:00
libhandy
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
2020-09-15 12:09:42 +00:00
] ++ [
libpwquality # using the python bindings
];
meta = with lib; {
2020-09-15 12:09:42 +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 ];
};
}