Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

libsecret: add updateScript

+10 -3
+10 -3
pkgs/development/libraries/libsecret/default.nix
··· 1 1 { stdenv, fetchurl, glib, pkgconfig, intltool, libxslt, docbook_xsl, gtk-doc 2 - , libgcrypt, gobjectIntrospection, vala_0_38 }: 2 + , libgcrypt, gobjectIntrospection, vala_0_38, gnome3 }: 3 3 let 4 + pname = "libsecret"; 4 5 version = "0.18.5"; 5 6 in 6 7 stdenv.mkDerivation rec { 7 - name = "libsecret-${version}"; 8 + name = "${pname}-${version}"; 8 9 9 10 src = fetchurl { 10 - url = "mirror://gnome/sources/libsecret/0.18/${name}.tar.xz"; 11 + url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz"; 11 12 sha256 = "1cychxc3ff8fp857iikw0n2s13s2mhw2dn1mr632f7w3sn6vvrww"; 12 13 }; 13 14 ··· 19 20 nativeBuildInputs = [ pkgconfig intltool libxslt docbook_xsl ]; 20 21 buildInputs = [ libgcrypt gobjectIntrospection vala_0_38 ]; 21 22 # optional: build docs with gtk-doc? (probably needs a flag as well) 23 + 24 + passthru = { 25 + updateScript = gnome3.updateScript { 26 + packageName = pname; 27 + }; 28 + }; 22 29 23 30 meta = { 24 31 description = "A library for storing and retrieving passwords and other secrets";