nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 17.09-beta 29 lines 964 B view raw
1{ stdenv, fetchurl, glib, pkgconfig, intltool, libxslt, docbook_xsl, gtk_doc 2, libgcrypt, gobjectIntrospection, vala_0_32 }: 3let 4 version = "0.18.5"; 5in 6stdenv.mkDerivation rec { 7 name = "libsecret-${version}"; 8 9 src = fetchurl { 10 url = "mirror://gnome/sources/libsecret/0.18/${name}.tar.xz"; 11 sha256 = "1cychxc3ff8fp857iikw0n2s13s2mhw2dn1mr632f7w3sn6vvrww"; 12 }; 13 14 outputs = [ "out" "dev" ]; 15 16 NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl"; 17 18 propagatedBuildInputs = [ glib ]; 19 nativeBuildInputs = [ pkgconfig intltool libxslt docbook_xsl ]; 20 buildInputs = [ libgcrypt gobjectIntrospection vala_0_32 ]; 21 # optional: build docs with gtk-doc? (probably needs a flag as well) 22 23 meta = { 24 description = "A library for storing and retrieving passwords and other secrets"; 25 homepage = https://wiki.gnome.org/Projects/Libsecret; 26 license = stdenv.lib.licenses.lgpl21Plus; 27 inherit (glib.meta) platforms maintainers; 28 }; 29}