2021-01-11 08:54:33 +01:00
|
|
|
|
{ lib, stdenv
|
2019-10-03 23:13:51 +02:00
|
|
|
|
, fetchurl
|
|
|
|
|
, vala
|
|
|
|
|
, meson
|
|
|
|
|
, ninja
|
|
|
|
|
, libpwquality
|
2021-01-17 03:21:50 +01:00
|
|
|
|
, pkg-config
|
2019-10-03 23:13:51 +02:00
|
|
|
|
, gtk3
|
|
|
|
|
, glib
|
2021-07-26 17:41:07 +02:00
|
|
|
|
, glib-networking
|
2019-10-03 23:13:51 +02:00
|
|
|
|
, wrapGAppsHook
|
|
|
|
|
, itstool
|
|
|
|
|
, gnupg
|
|
|
|
|
, libsoup
|
2021-05-07 23:18:14 +02:00
|
|
|
|
, gnome
|
2019-10-03 23:13:51 +02:00
|
|
|
|
, gpgme
|
|
|
|
|
, python3
|
|
|
|
|
, openldap
|
|
|
|
|
, gcr
|
|
|
|
|
, libsecret
|
|
|
|
|
, avahi
|
|
|
|
|
, p11-kit
|
|
|
|
|
, openssh
|
|
|
|
|
, gsettings-desktop-schemas
|
2020-11-17 15:28:53 +01:00
|
|
|
|
, libhandy
|
2019-10-03 23:13:51 +02:00
|
|
|
|
}:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
2018-12-12 19:55:47 +01:00
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-22 19:52:39 +01:00
|
|
|
|
pname = "seahorse";
|
2022-05-21 18:02:19 +02:00
|
|
|
|
version = "42.0";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-21 02:16:18 +01:00
|
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-05-21 18:02:19 +02:00
|
|
|
|
hash = "sha256-xQys6/jeen4uXx2uC5gjIRR0Epar6NVD45I9YqFT1jA=";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
};
|
|
|
|
|
|
2018-09-05 02:52:16 +02:00
|
|
|
|
nativeBuildInputs = [
|
2019-10-03 23:13:51 +02:00
|
|
|
|
meson
|
|
|
|
|
ninja
|
2021-01-17 03:21:50 +01:00
|
|
|
|
pkg-config
|
2019-10-03 23:13:51 +02:00
|
|
|
|
vala
|
|
|
|
|
itstool
|
|
|
|
|
wrapGAppsHook
|
|
|
|
|
python3
|
2022-08-07 00:48:42 +02:00
|
|
|
|
openssh
|
|
|
|
|
gnupg
|
|
|
|
|
gcr
|
|
|
|
|
# error: Package `...' not found in specified Vala API directories or GObject-Introspection GIR directories
|
|
|
|
|
# TODO: the vala setuphook should look for vala filess in targetOffset instead of hostOffset
|
|
|
|
|
libhandy
|
|
|
|
|
libsecret
|
2018-09-05 02:52:16 +02:00
|
|
|
|
];
|
2019-10-03 23:13:51 +02:00
|
|
|
|
|
2018-03-22 19:52:39 +01:00
|
|
|
|
buildInputs = [
|
2019-10-03 23:13:51 +02:00
|
|
|
|
gtk3
|
|
|
|
|
glib
|
2021-07-26 17:41:07 +02:00
|
|
|
|
glib-networking
|
2019-10-03 23:13:51 +02:00
|
|
|
|
gcr
|
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
|
gpgme
|
|
|
|
|
libsecret
|
|
|
|
|
avahi
|
|
|
|
|
libsoup
|
|
|
|
|
p11-kit
|
|
|
|
|
openldap
|
|
|
|
|
libpwquality
|
2020-11-17 15:28:53 +01:00
|
|
|
|
libhandy
|
2018-03-22 19:52:39 +01:00
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
2021-10-02 01:08:17 +02:00
|
|
|
|
doCheck = true;
|
|
|
|
|
|
2018-09-05 02:52:16 +02:00
|
|
|
|
postPatch = ''
|
|
|
|
|
patchShebangs build-aux/
|
|
|
|
|
'';
|
|
|
|
|
|
2021-10-02 01:08:17 +02:00
|
|
|
|
preCheck = ''
|
|
|
|
|
# Add “org.gnome.crypto.pgp” GSettings schema to path
|
|
|
|
|
# to make it available for “gpgme-backend” test.
|
|
|
|
|
# It is used by Seahorse’s internal “common” library.
|
2022-01-02 20:34:53 +01:00
|
|
|
|
addToSearchPath XDG_DATA_DIRS "${glib.getSchemaDataDirPath gcr}"
|
2021-10-02 01:08:17 +02:00
|
|
|
|
# The same test also requires home directory so that it can store settings.
|
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
|
'';
|
|
|
|
|
|
2022-05-23 13:52:20 +02:00
|
|
|
|
preFixup = ''
|
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
|
# Pick up icons from Gcr
|
|
|
|
|
--prefix XDG_DATA_DIRS : "${gcr}/share"
|
|
|
|
|
)
|
|
|
|
|
'';
|
|
|
|
|
|
2018-03-22 19:52:39 +01:00
|
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
|
updateScript = gnome.updateScript {
|
2018-03-22 19:52:39 +01:00
|
|
|
|
packageName = pname;
|
2021-05-07 23:18:14 +02:00
|
|
|
|
attrPath = "gnome.${pname}";
|
2018-03-22 19:52:39 +01:00
|
|
|
|
};
|
|
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
|
homepage = "https://wiki.gnome.org/Apps/Seahorse";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
description = "Application for managing encryption keys and passwords in the GnomeKeyring";
|
2020-04-01 14:40:51 +02:00
|
|
|
|
maintainers = teams.gnome.members;
|
2020-11-17 15:28:53 +01:00
|
|
|
|
license = licenses.gpl2Plus;
|
2016-09-18 21:35:23 +02:00
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
};
|
|
|
|
|
}
|