gobjectIntrospection: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-03 02:46:01 +01:00
parent 481c567c1a
commit 91db9292fa
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, glib, flex, bison, pkgconfig, libffi, python
, libintlOrEmpty, cctools, cairo
, libintlOrEmpty, cctools, cairo, gnome3
, substituteAll, nixStoreDir ? builtins.storeDir
}:
# now that gobjectIntrospection creates large .gir files (eg gtk3 case)
@ -7,15 +7,15 @@
# In that case its about 6MB which could be separated
let
ver_maj = "1.54";
ver_min = "1";
pname = "gobject-introspection";
version = "1.54.1";
in
with stdenv.lib;
stdenv.mkDerivation rec {
name = "gobject-introspection-${ver_maj}.${ver_min}";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/gobject-introspection/${ver_maj}/${name}.tar.xz";
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "0zl7pfkzkm07733391b4f3cwjbnvb1nwvpmajf5bajh6bxgfv3dq";
};
@ -50,6 +50,13 @@ stdenv.mkDerivation rec {
})
];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gobjectIntrospection";
};
};
meta = with stdenv.lib; {
description = "A middleware layer between C libraries and language bindings";
homepage = http://live.gnome.org/GObjectIntrospection;