nixpkgs/pkgs/development/libraries/libsecret/default.nix

51 lines
1.7 KiB
Nix
Raw Normal View History

2018-09-05 00:50:56 +00:00
{ stdenv, fetchurl, glib, pkgconfig, intltool, libxslt, python3, docbook_xsl, docbook_xml_dtd_42
, libgcrypt, gobjectIntrospection, vala, gtk-doc, gnome3, libintl, dbus, xvfb_run }:
stdenv.mkDerivation rec {
2018-03-03 05:24:48 +00:00
pname = "libsecret";
2018-09-05 00:50:56 +00:00
version = "0.18.6";
2018-03-03 05:24:48 +00:00
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
2018-09-05 00:50:56 +00:00
sha256 = "0vynag97a9bnnb8ipah45av8xg8jzmhd572rw3zj78s1pa8ciysy";
};
postPatch = ''
patchShebangs .
'';
2018-09-05 00:50:56 +00:00
outputs = [ "out" "dev" "devdoc" ];
propagatedBuildInputs = [ glib ];
2018-09-05 00:50:56 +00:00
nativeBuildInputs = [ pkgconfig intltool libxslt docbook_xsl docbook_xml_dtd_42 libintl gobjectIntrospection vala gtk-doc ];
buildInputs = [ libgcrypt ];
# optional: build docs with gtk-doc? (probably needs a flag as well)
2018-09-05 00:50:56 +00:00
enableParallelBuilding = true;
2018-09-05 00:50:56 +00:00
installCheckInputs = [ python3 python3.pkgs.dbus-python python3.pkgs.pygobject3 xvfb_run dbus gnome3.gjs ];
# needs to run after install because typelibs point to absolute paths
doInstallCheck = false; # Failed to load shared library '/force/shared/libmock_service.so.0' referenced by the typelib
installCheckPhase = ''
export NO_AT_BRIDGE=1
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
make check
'';
2018-03-03 05:24:48 +00:00
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = {
description = "A library for storing and retrieving passwords and other secrets";
homepage = https://wiki.gnome.org/Projects/Libsecret;
license = stdenv.lib.licenses.lgpl21Plus;
inherit (glib.meta) platforms maintainers;
};
}