nixpkgs/pkgs/desktops/gnome/apps/seahorse/default.nix

96 lines
1.7 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
, vala
, meson
, ninja
, libpwquality
2021-01-17 02:21:50 +00:00
, pkg-config
, gtk3
, glib
2021-07-26 15:41:07 +00:00
, glib-networking
, wrapGAppsHook
, itstool
, gnupg
, libsoup
, gnome
, gpgme
, python3
, openldap
, gcr
, libsecret
, avahi
, p11-kit
, openssh
, gsettings-desktop-schemas
, libhandy
}:
2018-12-12 18:55:47 +00:00
stdenv.mkDerivation rec {
2018-03-22 18:52:39 +00:00
pname = "seahorse";
2021-10-01 23:08:17 +00:00
version = "41.0";
src = fetchurl {
2021-03-21 01:16:18 +00:00
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
2021-10-01 23:08:17 +00:00
hash = "sha256-5u7AnoEESClfVH8YwdV3K2XD7cHZ5aJZXxC13eaJKfU=";
};
2018-09-05 00:52:16 +00:00
nativeBuildInputs = [
meson
ninja
2021-01-17 02:21:50 +00:00
pkg-config
vala
itstool
wrapGAppsHook
python3
2018-09-05 00:52:16 +00:00
];
2018-03-22 18:52:39 +00:00
buildInputs = [
gtk3
glib
2021-07-26 15:41:07 +00:00
glib-networking
gcr
gsettings-desktop-schemas
gnupg
gnome.adwaita-icon-theme
gpgme
libsecret
avahi
libsoup
p11-kit
openssh
openldap
libpwquality
libhandy
2018-03-22 18:52:39 +00:00
];
2021-10-01 23:08:17 +00:00
doCheck = true;
2018-09-05 00:52:16 +00:00
postPatch = ''
patchShebangs build-aux/
'';
2021-10-01 23:08:17 +00:00
preCheck = ''
# Add “org.gnome.crypto.pgp” GSettings schema to path
# to make it available for “gpgme-backend” test.
# It is used by Seahorses internal “common” library.
addToSearchPath XDG_DATA_DIRS "${glib.getSchemaDataDirPath gcr}"
2021-10-01 23:08:17 +00:00
# The same test also requires home directory so that it can store settings.
export HOME=$TMPDIR
'';
2018-03-22 18:52:39 +00:00
passthru = {
updateScript = gnome.updateScript {
2018-03-22 18:52:39 +00:00
packageName = pname;
attrPath = "gnome.${pname}";
2018-03-22 18:52:39 +00:00
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Seahorse";
description = "Application for managing encryption keys and passwords in the GnomeKeyring";
maintainers = teams.gnome.members;
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}