2016-08-16 21:51:21 +01:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig
|
2016-09-11 22:24:51 +01:00
|
|
|
, libXrender, renderproto, gtk2, libwnck, pango, cairo
|
2012-11-25 19:58:04 +00:00
|
|
|
, GConf, libXdamage, damageproto, libxml2, libxslt, glibmm
|
2013-02-23 14:10:01 +00:00
|
|
|
, metacity
|
2012-11-25 19:58:04 +00:00
|
|
|
, libstartup_notification, libpthreadstubs, libxcb, intltool
|
2016-08-10 19:23:14 +01:00
|
|
|
, ORBit2, libXau, libICE, libSM
|
2012-11-25 19:58:04 +00:00
|
|
|
, dbus, dbus_glib, librsvg, mesa
|
2016-08-16 21:51:21 +01:00
|
|
|
, libXdmcp, libnotify, pythonPackages
|
|
|
|
, hicolor_icon_theme, libjpeg_turbo, libsigcxx, protobuf
|
2012-11-25 19:58:04 +00:00
|
|
|
, xdg_utils
|
|
|
|
, gettext, boost, pyrex
|
2012-11-25 21:43:30 +00:00
|
|
|
, makeWrapper
|
2012-11-25 19:58:04 +00:00
|
|
|
}:
|
|
|
|
let
|
2016-08-16 21:51:21 +01:00
|
|
|
inherit (pythonPackages) python dbus-python pygtk;
|
|
|
|
|
2012-11-25 19:58:04 +00:00
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="compiz";
|
2016-08-10 19:23:14 +01:00
|
|
|
version="0.9.13.0";
|
2013-10-20 18:06:48 +01:00
|
|
|
name="${baseName}-${version}";
|
2016-08-10 19:23:14 +01:00
|
|
|
hash="00m73im5kdpbfjg9ryzxnab5qvx5j51gxwr3wzimkrcbax6vb3ph";
|
|
|
|
url="https://launchpad.net/compiz/0.9.13/0.9.13.0/+download/compiz-0.9.13.0.tar.bz2";
|
|
|
|
sha256="00m73im5kdpbfjg9ryzxnab5qvx5j51gxwr3wzimkrcbax6vb3ph";
|
2012-11-25 19:58:04 +00:00
|
|
|
};
|
|
|
|
buildInputs = [cmake pkgconfig
|
2016-09-11 22:24:51 +01:00
|
|
|
libXrender renderproto gtk2 libwnck pango cairo
|
2012-11-25 19:58:04 +00:00
|
|
|
GConf libXdamage damageproto libxml2 libxslt glibmm libstartup_notification
|
2013-02-23 14:10:01 +00:00
|
|
|
metacity
|
2012-11-25 19:58:04 +00:00
|
|
|
libpthreadstubs libxcb intltool
|
2016-08-10 19:23:14 +01:00
|
|
|
ORBit2 libXau libICE libSM
|
2012-11-25 19:58:04 +00:00
|
|
|
dbus dbus_glib librsvg mesa
|
|
|
|
libXdmcp libnotify python
|
2016-08-16 21:51:21 +01:00
|
|
|
hicolor_icon_theme libjpeg_turbo libsigcxx protobuf pygtk dbus-python
|
2012-11-25 19:58:04 +00:00
|
|
|
xdg_utils
|
|
|
|
gettext boost pyrex
|
2012-11-25 21:43:30 +00:00
|
|
|
makeWrapper
|
2012-11-25 19:58:04 +00:00
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (s) name version;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
|
|
|
inherit buildInputs;
|
|
|
|
|
2013-02-23 14:10:01 +00:00
|
|
|
NIX_CFLAGS_COMPILE = " -Wno-error ";
|
|
|
|
NIX_CFLAGS_LINK = "-lm -ldl -pthread -lutil";
|
2012-11-25 21:43:30 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/ccsm" \
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
--prefix PYTHONPATH : "$out/lib/${python.libPrefix}/site-packages"
|
|
|
|
'';
|
2012-11-25 19:58:04 +00:00
|
|
|
|
2015-07-25 07:43:53 +01:00
|
|
|
# automatic moving fails, perhaps due to having two $out/lib*/pkgconfig
|
|
|
|
dontMoveLib64 = true;
|
|
|
|
|
2012-11-25 19:58:04 +00:00
|
|
|
meta = {
|
|
|
|
description = "Compoziting window manager";
|
|
|
|
homepage = "http://launchpad.net/compiz/";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
inherit (s) version;
|
|
|
|
};
|
|
|
|
}
|