3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libsecret/default.nix

30 lines
964 B
Nix
Raw Normal View History

{ stdenv, fetchurl, glib, pkgconfig, intltool, libxslt, docbook_xsl, gtk_doc
2016-08-20 15:11:44 +01:00
, libgcrypt, gobjectIntrospection, vala_0_32 }:
let
2016-04-13 00:06:10 +01:00
version = "0.18.5";
in
stdenv.mkDerivation rec {
name = "libsecret-${version}";
src = fetchurl {
2016-04-13 00:06:10 +01:00
url = "mirror://gnome/sources/libsecret/0.18/${name}.tar.xz";
sha256 = "1cychxc3ff8fp857iikw0n2s13s2mhw2dn1mr632f7w3sn6vvrww";
};
outputs = [ "out" "dev" ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
propagatedBuildInputs = [ glib ];
nativeBuildInputs = [ pkgconfig intltool libxslt docbook_xsl ];
2016-08-20 15:11:44 +01:00
buildInputs = [ libgcrypt gobjectIntrospection vala_0_32 ];
# optional: build docs with gtk-doc? (probably needs a flag as well)
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;
};
}