3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/gnome-secrets/default.nix

80 lines
1.7 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-09-15 13:09:42 +01:00
, meson
, ninja
, pkg-config
, gettext
, fetchFromGitLab
2021-03-02 01:59:00 +00:00
, python3Packages
2020-09-15 13:09:42 +01:00
, libpwquality
, wrapGAppsHook4
, gtk4
2020-09-15 13:09:42 +01:00
, glib
, gdk-pixbuf
, gobject-introspection
, desktop-file-utils
, appstream-glib
, libadwaita }:
2020-09-15 13:09:42 +01:00
2021-03-02 01:59:00 +00:00
python3Packages.buildPythonApplication rec {
pname = "gnome-secrets";
version = "6.1";
2020-09-15 13:09:42 +01:00
format = "other";
strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
2021-12-07 21:01:43 +00:00
repo = "secrets";
2020-09-15 13:09:42 +01:00
rev = version;
sha256 = "sha256-TBGNiiR0GW8s/Efi4/Qqvwd87Ir0gCLGPfBmmqqSwQ8=";
2020-09-15 13:09:42 +01:00
};
nativeBuildInputs = [
meson
ninja
gettext
pkg-config
wrapGAppsHook4
2020-09-15 13:09:42 +01:00
desktop-file-utils
appstream-glib
gobject-introspection
];
buildInputs = [
gtk4
2020-09-15 13:09:42 +01:00
glib
gdk-pixbuf
libadwaita
2020-09-15 13:09:42 +01:00
];
2021-03-02 01:59:00 +00:00
propagatedBuildInputs = with python3Packages; [
2020-09-15 13:09:42 +01:00
pygobject3
construct
2021-03-02 01:59:00 +00:00
pykeepass
pyotp
2020-09-15 13:09:42 +01:00
] ++ [
libpwquality # using the python bindings
];
postPatch = ''
substituteInPlace meson_post_install.py --replace "gtk-update-icon-cache" "gtk4-update-icon-cache";
'';
# Prevent double wrapping, let the Python wrapper use the args in preFixup.
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = with lib; {
2020-09-15 13:09:42 +01: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";
2021-12-07 21:01:43 +00:00
homepage = "https://gitlab.gnome.org/World/secrets";
2020-09-15 13:09:42 +01:00
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ mvnetbiz ];
};
}