json-glib: add updateScript

This commit is contained in:
Jan Tojnar 2018-05-31 19:14:38 +02:00
parent ef695239a0
commit 252a8af143
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,14 +1,15 @@
{ stdenv, fetchurl, fetchpatch, glib, meson, ninja, pkgconfig, gettext
, gobjectIntrospection, dbus
, fixDarwinDylibNames
, gobjectIntrospection, dbus, fixDarwinDylibNames, gnome3
}:
stdenv.mkDerivation rec {
name = "json-glib-${minVer}.2";
minVer = "1.4";
let
pname = "json-glib";
version = "1.4.2";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/json-glib/${minVer}/${name}.tar.xz";
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "2d7709a44749c7318599a6829322e081915bdc73f5be5045882ed120bb686dc8";
};
@ -28,9 +29,15 @@ stdenv.mkDerivation rec {
doCheck = true;
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
homepage = http://live.gnome.org/JsonGlib;
description = "A library providing (de)serialization support for the JavaScript Object Notation (JSON) format";
homepage = https://wiki.gnome.org/Projects/JsonGlib;
license = licenses.lgpl2;
maintainers = with maintainers; [ lethalman ];
platforms = with platforms; unix;