1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libsecret/default.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

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