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