2022-10-21 18:38:19 +00:00
|
|
|
|
{ stdenv
|
|
|
|
|
, lib
|
2023-02-16 17:41:37 +00:00
|
|
|
|
, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, fetchurl
|
|
|
|
|
, vala
|
|
|
|
|
, meson
|
|
|
|
|
, ninja
|
|
|
|
|
, libpwquality
|
2021-02-05 17:12:51 +00:00
|
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, gtk3
|
|
|
|
|
, glib
|
2021-08-05 21:33:18 +00:00
|
|
|
|
, glib-networking
|
2024-05-15 15:35:15 +00:00
|
|
|
|
, wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, itstool
|
|
|
|
|
, gnupg
|
2022-10-21 18:38:19 +00:00
|
|
|
|
, desktop-file-utils
|
|
|
|
|
, libsoup_3
|
2021-05-20 23:08:51 +00:00
|
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, gpgme
|
|
|
|
|
, python3
|
|
|
|
|
, openldap
|
|
|
|
|
, gcr
|
|
|
|
|
, libsecret
|
|
|
|
|
, avahi
|
|
|
|
|
, p11-kit
|
|
|
|
|
, openssh
|
|
|
|
|
, gsettings-desktop-schemas
|
2020-11-19 00:13:47 +00:00
|
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "seahorse";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
version = "43.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-09-19 14:19:46 +00:00
|
|
|
|
url = "mirror://gnome/sources/seahorse/${lib.versions.major version}/seahorse-${version}.tar.xz";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
hash = "sha256-Wx0b+6dPNlgifzyC4pbzMN0PzR70Y2tqIYIo/uXqgy0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
|
patches = [
|
|
|
|
|
(fetchpatch {
|
|
|
|
|
name = "gpg-2.4.patch";
|
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/seahorse/-/commit/9260c74779be3d7a378db0671af862ffa3573d42.patch";
|
|
|
|
|
hash = "sha256-4QiFgH4jC1ucmA9fFozUQZ3Mat76SgpYkMpRz80RH64=";
|
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
meson
|
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
|
vala
|
|
|
|
|
itstool
|
2024-05-15 15:35:15 +00:00
|
|
|
|
wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
|
python3
|
2022-09-30 11:47:45 +00:00
|
|
|
|
openssh
|
|
|
|
|
gnupg
|
2022-10-21 18:38:19 +00:00
|
|
|
|
desktop-file-utils
|
2022-09-30 11:47:45 +00:00
|
|
|
|
gcr
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
gtk3
|
|
|
|
|
glib
|
2021-08-05 21:33:18 +00:00
|
|
|
|
glib-networking
|
2020-04-24 23:36:52 +00:00
|
|
|
|
gcr
|
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
|
gpgme
|
|
|
|
|
libsecret
|
|
|
|
|
avahi
|
2022-10-21 18:38:19 +00:00
|
|
|
|
libsoup_3
|
2020-04-24 23:36:52 +00:00
|
|
|
|
p11-kit
|
|
|
|
|
openldap
|
|
|
|
|
libpwquality
|
2020-11-19 00:13:47 +00:00
|
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
|
doCheck = true;
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
postPatch = ''
|
2022-10-21 18:38:19 +00:00
|
|
|
|
patchShebangs build-aux/gpg_check_version.py
|
2020-04-24 23:36:52 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2021-10-14 00:43:12 +00: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-13 20:06:32 +00:00
|
|
|
|
addToSearchPath XDG_DATA_DIRS "${glib.getSchemaDataDirPath gcr}"
|
2021-10-14 00:43:12 +00:00
|
|
|
|
# The same test also requires home directory so that it can store settings.
|
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
|
'';
|
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
|
preFixup = ''
|
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
|
# Pick up icons from Gcr
|
|
|
|
|
--prefix XDG_DATA_DIRS : "${gcr}/share"
|
|
|
|
|
)
|
|
|
|
|
'';
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
|
updateScript = gnome.updateScript {
|
2024-09-19 14:19:46 +00:00
|
|
|
|
packageName = "seahorse";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
|
meta = with lib; {
|
2024-05-15 15:35:15 +00:00
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/seahorse";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "Application for managing encryption keys and passwords in the GnomeKeyring";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
mainProgram = "seahorse";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
maintainers = teams.gnome.members;
|
2020-11-19 00:13:47 +00:00
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
};
|
|
|
|
|
}
|