2018-02-25 03:23:58 +01:00
|
|
|
{ stdenv, fetchurl, glib, pkgconfig, intltool, libxslt, docbook_xsl, gtk-doc
|
2017-10-10 22:24:04 +02:00
|
|
|
, libgcrypt, gobjectIntrospection, vala_0_38 }:
|
2015-04-10 10:24:42 +02:00
|
|
|
let
|
2016-04-13 01:06:10 +02:00
|
|
|
version = "0.18.5";
|
2015-04-10 10:24:42 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2013-06-21 19:59:20 +02:00
|
|
|
name = "libsecret-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-04-13 01:06:10 +02:00
|
|
|
url = "mirror://gnome/sources/libsecret/0.18/${name}.tar.xz";
|
|
|
|
sha256 = "1cychxc3ff8fp857iikw0n2s13s2mhw2dn1mr632f7w3sn6vvrww";
|
2013-06-21 19:59:20 +02:00
|
|
|
};
|
|
|
|
|
2017-01-10 15:23:16 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2016-08-12 05:42:13 +02:00
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
|
|
|
|
2015-04-10 10:24:42 +02:00
|
|
|
propagatedBuildInputs = [ glib ];
|
|
|
|
nativeBuildInputs = [ pkgconfig intltool libxslt docbook_xsl ];
|
2017-10-10 22:24:04 +02:00
|
|
|
buildInputs = [ libgcrypt gobjectIntrospection vala_0_38 ];
|
2015-04-10 10:24:42 +02:00
|
|
|
# optional: build docs with gtk-doc? (probably needs a flag as well)
|
2013-06-21 19:59:20 +02:00
|
|
|
|
|
|
|
meta = {
|
2015-04-10 10:24:42 +02:00
|
|
|
description = "A library for storing and retrieving passwords and other secrets";
|
|
|
|
homepage = https://wiki.gnome.org/Projects/Libsecret;
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2013-06-21 19:59:20 +02:00
|
|
|
inherit (glib.meta) platforms maintainers;
|
|
|
|
};
|
|
|
|
}
|