libwnck3: build gir
This commit is contained in:
parent
819d766f77
commit
bf91662967
@ -1,28 +1,38 @@
|
|||||||
{stdenv, fetchurl, pkgconfig, libX11, gtk3, intltool}:
|
{stdenv, fetchurl, pkgconfig, libX11, gtk3, intltool, gobjectIntrospection, gnome3}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec{
|
let
|
||||||
name = "libwnck-${version}";
|
pname = "libwnck";
|
||||||
version = "${majorVer}.${minorVer}.${patchVer}";
|
version = "3.24.1";
|
||||||
|
in stdenv.mkDerivation rec{
|
||||||
majorVer = "3";
|
name = "${pname}-${version}";
|
||||||
minorVer = "24";
|
|
||||||
patchVer = "1";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/libwnck/${majorVer}.${minorVer}/${name}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
||||||
sha256 = "010zk9zvydggxqnxfml3scml5yxmpjy90irpqcayrzw26lldr9mg";
|
sha256 = "010zk9zvydggxqnxfml3scml5yxmpjy90irpqcayrzw26lldr9mg";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" "devdoc" ];
|
outputs = [ "out" "dev" "devdoc" ];
|
||||||
outputBin = "dev";
|
outputBin = "dev";
|
||||||
|
|
||||||
patches = [ ./install_introspection_to_prefix.patch ];
|
configureFlags = [ "--enable-introspection" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig intltool gobjectIntrospection ];
|
||||||
buildInputs = [ intltool ];
|
|
||||||
propagatedBuildInputs = [ libX11 gtk3 ];
|
propagatedBuildInputs = [ libX11 gtk3 ];
|
||||||
|
|
||||||
meta = {
|
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR = "${placeholder "dev"}/share/gir-1.0";
|
||||||
platforms = stdenv.lib.platforms.linux;
|
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR = "${placeholder "out"}/lib/girepository-1.0";
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = gnome3.updateScript {
|
||||||
|
packageName = pname;
|
||||||
|
attrPath = "gnome3.${pname}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Library to manage X windows and workspaces (via pagers, tasklists, etc.)";
|
||||||
|
license = licenses.lgpl21Plus;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = [];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
--- libwnck-3.4.7/configure 2013-08-20 14:46:14.000000000 +0000
|
|
||||||
+++ libwnck-3.4.7-fix/configure 2014-01-05 17:18:56.665427787 +0000
|
|
||||||
@@ -16150,7 +16150,7 @@ $as_echo "$found_introspection" >&6; }
|
|
||||||
INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
|
|
||||||
INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
|
|
||||||
- INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
|
|
||||||
+ INTROSPECTION_GIRDIR="${datadir}/gir-1.0"
|
|
||||||
- INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
|
|
||||||
+ INTROSPECTION_TYPELIBDIR="${libdir}/girepository-1.0"
|
|
||||||
INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
|
|
||||||
INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
|
|
||||||
INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
|
|
Loading…
x
Reference in New Issue
Block a user