tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
libmx: Add package
Charles Strahan
12 years ago
64754519
282a662a
+62
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
libmx
default.nix
top-level
all-packages.nix
+60
pkgs/development/libraries/libmx/default.nix
reviewed
···
1
1
+
{ stdenv, fetchurl
2
2
+
, libtool, pkgconfig, automake, autoconf, intltool
3
3
+
, glib, gobjectIntrospection, gtk2, gtk_doc
4
4
+
, clutter, clutter_gtk
5
5
+
}:
6
6
+
7
7
+
stdenv.mkDerivation rec {
8
8
+
name = "libmx-${version}";
9
9
+
version = "1.4.7";
10
10
+
11
11
+
src = fetchurl {
12
12
+
url = "https://github.com/clutter-project/mx/archive/${version}.tar.gz";
13
13
+
sha256 = "8a7514ea33c1dec7251d0141e24a702e7701dc9f00348cbcf1816925b7f74dbc";
14
14
+
};
15
15
+
16
16
+
# remove the following superfluous checks
17
17
+
preConfigure = ''
18
18
+
substituteInPlace "autogen.sh" \
19
19
+
--replace '`which intltoolize`' '"x"' \
20
20
+
--replace '`which gtkdocize`' '"x"' \
21
21
+
--replace '`which autoreconf`' '"x"'
22
22
+
'';
23
23
+
24
24
+
configureFlags = [ "--enable-introspection"
25
25
+
"--without-startup-notification"
26
26
+
"--without-dbus"
27
27
+
"--without-glade"
28
28
+
"--without-clutter-imcontext"
29
29
+
"--without-clutter-gesture"
30
30
+
];
31
31
+
32
32
+
configureScript = "sh autogen.sh";
33
33
+
34
34
+
buildInputs = [
35
35
+
pkgconfig automake autoconf libtool
36
36
+
intltool
37
37
+
gobjectIntrospection glib
38
38
+
gtk2 gtk_doc clutter clutter_gtk
39
39
+
];
40
40
+
41
41
+
# patch to resolve GL errors
42
42
+
# source : https://github.com/clutter-project/mx/pull/62
43
43
+
preBuild = ''
44
44
+
sed -i 's/GLushort/gushort/g' mx/mx-deform-texture.c
45
45
+
sed -i 's/GLfloat/gfloat/g' mx/mx-texture-frame.c
46
46
+
'';
47
47
+
48
48
+
meta = with stdenv.lib; {
49
49
+
homepage = http://www.clutter-project.org/;
50
50
+
description = "A Clutter-based toolkit";
51
51
+
longDescription =
52
52
+
''Mx is a widget toolkit using Clutter that provides a set of standard
53
53
+
interface elements, including buttons, progress bars, scroll bars and
54
54
+
others. It also implements some standard managers. One other interesting
55
55
+
feature is the possibility setting style properties from a CSS format
56
56
+
file.'';
57
57
+
license = licenses.lgpl21;
58
58
+
maintainers = with maintainers; [ cstrahan ];
59
59
+
};
60
60
+
}
+2
pkgs/top-level/all-packages.nix
reviewed
···
5150
5150
5151
5151
libmusicbrainz = libmusicbrainz3;
5152
5152
5153
5153
+
libmx = callPackage ../development/libraries/libmx { };
5154
5154
+
5153
5155
libnet = callPackage ../development/libraries/libnet { };
5154
5156
5155
5157
libnetfilter_conntrack = callPackage ../development/libraries/libnetfilter_conntrack { };