1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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
, libgcrypt, gobjectIntrospection, vala_0_38 }:
, libgcrypt, gobjectIntrospection, vala_0_38, gnome3 }:
let
pname = "libsecret";
version = "0.18.5";
in
stdenv.mkDerivation rec {
name = "libsecret-${version}";
name = "${pname}-${version}";
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";
};
@ -20,6 +21,12 @@ stdenv.mkDerivation rec {
buildInputs = [ libgcrypt gobjectIntrospection vala_0_38 ];
# optional: build docs with gtk-doc? (probably needs a flag as well)
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;