mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
json-glib: add updateScript
This commit is contained in:
parent
ef695239a0
commit
252a8af143
@ -1,14 +1,15 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, glib, meson, ninja, pkgconfig, gettext
|
{ stdenv, fetchurl, fetchpatch, glib, meson, ninja, pkgconfig, gettext
|
||||||
, gobjectIntrospection, dbus
|
, gobjectIntrospection, dbus, fixDarwinDylibNames, gnome3
|
||||||
, fixDarwinDylibNames
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "json-glib-${minVer}.2";
|
pname = "json-glib";
|
||||||
minVer = "1.4";
|
version = "1.4.2";
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
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";
|
sha256 = "2d7709a44749c7318599a6829322e081915bdc73f5be5045882ed120bb686dc8";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -28,9 +29,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = gnome3.updateScript {
|
||||||
|
packageName = pname;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://live.gnome.org/JsonGlib;
|
|
||||||
description = "A library providing (de)serialization support for the JavaScript Object Notation (JSON) format";
|
description = "A library providing (de)serialization support for the JavaScript Object Notation (JSON) format";
|
||||||
|
homepage = https://wiki.gnome.org/Projects/JsonGlib;
|
||||||
license = licenses.lgpl2;
|
license = licenses.lgpl2;
|
||||||
maintainers = with maintainers; [ lethalman ];
|
maintainers = with maintainers; [ lethalman ];
|
||||||
platforms = with platforms; unix;
|
platforms = with platforms; unix;
|
||||||
|
Loading…
Reference in New Issue
Block a user