gnome3.dconf: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-03 02:29:38 +01:00
parent 1541c31097
commit 1a91396e1a
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -2,14 +2,14 @@
, libxml2, intltool, docbook_xsl_ns, docbook_xsl, makeWrapper }:
let
majorVersion = "0.26";
pname = "dconf";
in
stdenv.mkDerivation rec {
name = "dconf-${version}";
version = "${majorVersion}.1";
name = "${pname}-${version}";
version = "0.26.1";
src = fetchurl {
url = "mirror://gnome/sources/dconf/${majorVersion}/${name}.tar.xz";
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "0da587hpiqy8h3pswn1102h4b905x8k6mk3ajpi7kf4kzkvv30ym";
};
@ -23,7 +23,16 @@ stdenv.mkDerivation rec {
--replace "-soname=libdconf.so.1" "-install_name,libdconf.so.1"
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Projects/dconf;
license = licenses.lgpl21Plus;
platforms = platforms.linux ++ platforms.darwin;
maintainers = gnome3.maintainers;
};