gobjectIntrospection: add updateScript

+12 -5
+12 -5
pkgs/development/libraries/gobject-introspection/default.nix
··· 1 { stdenv, fetchurl, glib, flex, bison, pkgconfig, libffi, python 2 - , libintlOrEmpty, cctools, cairo 3 , substituteAll, nixStoreDir ? builtins.storeDir 4 }: 5 # now that gobjectIntrospection creates large .gir files (eg gtk3 case) ··· 7 # In that case its about 6MB which could be separated 8 9 let 10 - ver_maj = "1.54"; 11 - ver_min = "1"; 12 in 13 with stdenv.lib; 14 stdenv.mkDerivation rec { 15 - name = "gobject-introspection-${ver_maj}.${ver_min}"; 16 17 src = fetchurl { 18 - url = "mirror://gnome/sources/gobject-introspection/${ver_maj}/${name}.tar.xz"; 19 sha256 = "0zl7pfkzkm07733391b4f3cwjbnvb1nwvpmajf5bajh6bxgfv3dq"; 20 }; 21 ··· 49 cairoLib = "${getLib cairo}/lib"; 50 }) 51 ]; 52 53 meta = with stdenv.lib; { 54 description = "A middleware layer between C libraries and language bindings";
··· 1 { stdenv, fetchurl, glib, flex, bison, pkgconfig, libffi, python 2 + , libintlOrEmpty, cctools, cairo, gnome3 3 , substituteAll, nixStoreDir ? builtins.storeDir 4 }: 5 # now that gobjectIntrospection creates large .gir files (eg gtk3 case) ··· 7 # In that case its about 6MB which could be separated 8 9 let 10 + pname = "gobject-introspection"; 11 + version = "1.54.1"; 12 in 13 with stdenv.lib; 14 stdenv.mkDerivation rec { 15 + name = "${pname}-${version}"; 16 17 src = fetchurl { 18 + url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz"; 19 sha256 = "0zl7pfkzkm07733391b4f3cwjbnvb1nwvpmajf5bajh6bxgfv3dq"; 20 }; 21 ··· 49 cairoLib = "${getLib cairo}/lib"; 50 }) 51 ]; 52 + 53 + passthru = { 54 + updateScript = gnome3.updateScript { 55 + packageName = pname; 56 + attrPath = "gobjectIntrospection"; 57 + }; 58 + }; 59 60 meta = with stdenv.lib; { 61 description = "A middleware layer between C libraries and language bindings";