libsecret: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-03 06:24:48 +01:00
parent fd692bbc11
commit a218d431af
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,13 +1,14 @@
{ stdenv, fetchurl, glib, pkgconfig, intltool, libxslt, docbook_xsl, gtk-doc { stdenv, fetchurl, glib, pkgconfig, intltool, libxslt, docbook_xsl, gtk-doc
, libgcrypt, gobjectIntrospection, vala_0_38 }: , libgcrypt, gobjectIntrospection, vala_0_38, gnome3 }:
let let
pname = "libsecret";
version = "0.18.5"; version = "0.18.5";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libsecret-${version}"; name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/libsecret/0.18/${name}.tar.xz"; url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "1cychxc3ff8fp857iikw0n2s13s2mhw2dn1mr632f7w3sn6vvrww"; sha256 = "1cychxc3ff8fp857iikw0n2s13s2mhw2dn1mr632f7w3sn6vvrww";
}; };
@ -20,6 +21,12 @@ stdenv.mkDerivation rec {
buildInputs = [ libgcrypt gobjectIntrospection vala_0_38 ]; buildInputs = [ libgcrypt gobjectIntrospection vala_0_38 ];
# optional: build docs with gtk-doc? (probably needs a flag as well) # optional: build docs with gtk-doc? (probably needs a flag as well)
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = { meta = {
description = "A library for storing and retrieving passwords and other secrets"; description = "A library for storing and retrieving passwords and other secrets";
homepage = https://wiki.gnome.org/Projects/Libsecret; homepage = https://wiki.gnome.org/Projects/Libsecret;