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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

107 lines
2.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
, vala
, meson
, ninja
, libpwquality
2021-01-17 03:21:50 +01:00
, pkg-config
, gtk3
, glib
2021-07-26 17:41:07 +02:00
, glib-networking
, wrapGAppsHook
, itstool
, gnupg
, libsoup
, gnome
, gpgme
, python3
, openldap
, gcr
, libsecret
, avahi
, p11-kit
, openssh
, gsettings-desktop-schemas
, libhandy
}:
2018-12-12 19:55:47 +01:00
stdenv.mkDerivation rec {
2018-03-22 19:52:39 +01:00
pname = "seahorse";
version = "42.0";
src = fetchurl {
2021-03-21 02:16:18 +01:00
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
hash = "sha256-xQys6/jeen4uXx2uC5gjIRR0Epar6NVD45I9YqFT1jA=";
};
2018-09-05 02:52:16 +02:00
nativeBuildInputs = [
meson
ninja
2021-01-17 03:21:50 +01:00
pkg-config
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
];
2018-03-22 19:52:39 +01:00
buildInputs = [
gtk3
glib
2021-07-26 17:41:07 +02:00
glib-networking
gcr
gsettings-desktop-schemas
gpgme
libsecret
avahi
libsoup
p11-kit
openldap
libpwquality
libhandy
2018-03-22 19:52:39 +01: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 Seahorses internal “common” library.
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
'';
preFixup = ''
gappsWrapperArgs+=(
# Pick up icons from Gcr
--prefix XDG_DATA_DIRS : "${gcr}/share"
)
'';
2018-03-22 19:52:39 +01:00
passthru = {
updateScript = gnome.updateScript {
2018-03-22 19:52:39 +01:00
packageName = pname;
attrPath = "gnome.${pname}";
2018-03-22 19:52:39 +01: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;
};
}