summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorMatt Votava <mvnetbiz@gmail.com>2020-09-15 05:09:42 -0700
committerMatt Votava <mvnetbiz@gmail.com>2020-10-13 04:30:50 -0700
commit2cebafe5ba7548c30aa75bdc124fed59a266436e (patch)
tree57fa54c8b0cdd70d6bfb0274401c7d3b44b69563 /pkgs
parent00bf6abad17bd07c29576f382d77797a973f3be1 (diff)
passwordsafe: init at 3.99.2
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/misc/gnome-passwordsafe/default.nix80
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 82 insertions, 0 deletions
diff --git a/pkgs/applications/misc/gnome-passwordsafe/default.nix b/pkgs/applications/misc/gnome-passwordsafe/default.nix
new file mode 100644
index 000000000000..7b0553f7f9e3
--- /dev/null
+++ b/pkgs/applications/misc/gnome-passwordsafe/default.nix
@@ -0,0 +1,80 @@
+{ stdenv
+, meson
+, ninja
+, pkg-config
+, gettext
+, fetchFromGitLab
+, python3
+, libhandy
+, libpwquality
+, wrapGAppsHook
+, gtk3
+, glib
+, gdk-pixbuf
+, gobject-introspection
+, desktop-file-utils
+, appstream-glib }:
+
+python3.pkgs.buildPythonApplication rec {
+ pname = "gnome-passwordsafe";
+ version = "3.99.2";
+ format = "other";
+ strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943
+
+ src = fetchFromGitLab {
+ domain = "gitlab.gnome.org";
+ owner = "World";
+ repo = "PasswordSafe";
+ rev = version;
+ sha256 = "0pi2l4gwf8paxm858mxrcsk5nr0c0zw5ycax40mghndb6b1qmmhf";
+ };
+
+ nativeBuildInputs = [
+ meson
+ ninja
+ gettext
+ pkg-config
+ wrapGAppsHook
+ desktop-file-utils
+ appstream-glib
+ gobject-introspection
+ ];
+
+ buildInputs = [
+ gtk3
+ glib
+ gdk-pixbuf
+ libhandy
+ ];
+
+ propagatedBuildInputs = with python3.pkgs; [
+ pygobject3
+ construct
+
+ # pykeepass 3.2.1 changed some exception types, and is not backwards compatible.
+ # Remove override once the MR is merged upstream.
+ # https://gitlab.gnome.org/World/PasswordSafe/-/merge_requests/79
+ (pykeepass.overridePythonAttrs (old: rec {
+ version = "3.2.0";
+ src = fetchPypi {
+ pname = "pykeepass";
+ inherit version;
+ sha256 = "1ysjn92bixq8wkwhlbhrjj9z0h80qnlnj7ks5478ndkzdw5gxvm1";
+ };
+ propagatedBuildInputs = old.propagatedBuildInputs ++ [ pycryptodome ];
+ }))
+
+ ] ++ [
+ libpwquality # using the python bindings
+ ];
+
+ meta = with stdenv.lib; {
+ 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 ];
+ };
+}
+
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index cc4e40c779dd..ca40ebeb7a37 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -3977,6 +3977,8 @@ in
gnome-keysign = callPackage ../tools/security/gnome-keysign { };
+ gnome-passwordsafe = callPackage ../applications/misc/gnome-passwordsafe { };
+
gnome-podcasts = callPackage ../applications/audio/gnome-podcasts { };
gnome-photos = callPackage ../applications/graphics/gnome-photos {