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

42 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, glib, pkgconfig, intltool, libxslt, docbook_xsl
2018-03-14 21:29:44 +01:00
, libgcrypt, gobjectIntrospection, vala_0_38, gnome3, libintl }:
stdenv.mkDerivation rec {
2018-03-03 06:24:48 +01:00
pname = "libsecret";
2016-04-13 01:06:10 +02:00
version = "0.18.5";
2018-03-03 06:24:48 +01:00
name = "${pname}-${version}";
src = fetchurl {
2018-03-03 06:24:48 +01:00
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
2016-04-13 01:06:10 +02:00
sha256 = "1cychxc3ff8fp857iikw0n2s13s2mhw2dn1mr632f7w3sn6vvrww";
};
postPatch = ''
patchShebangs .
'';
outputs = [ "out" "dev" ];
propagatedBuildInputs = [ glib ];
2018-03-14 20:15:06 +01:00
nativeBuildInputs = [ pkgconfig intltool libxslt docbook_xsl libintl ];
2017-10-10 22:24:04 +02:00
buildInputs = [ libgcrypt gobjectIntrospection vala_0_38 ];
# optional: build docs with gtk-doc? (probably needs a flag as well)
# checkInputs = [ python2 ];
doCheck = false; # fails. with python3 tests fail to evaluate, with python2 they fail to run python3
2018-03-03 06:24:48 +01: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;
};
}