2015-07-12 19:00:43 +01:00
|
|
|
{
|
|
|
|
enableXft ? true, libXft ? null,
|
|
|
|
patches ? [],
|
|
|
|
stdenv, fetchurl,
|
|
|
|
lua, gettext, groff,
|
|
|
|
pkgconfig, busybox,
|
2015-09-15 10:13:22 +01:00
|
|
|
xlibsWrapper, libXinerama, libXrandr, libX11
|
2015-07-12 19:00:43 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert enableXft -> libXft != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "notion";
|
|
|
|
version = "3-2015061300";
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tiling tabbed window manager, follow-on to the ion window manager";
|
|
|
|
homepage = http://notion.sourceforge.net;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.notion_lgpl;
|
|
|
|
maintainers = [maintainers.jfb];
|
|
|
|
};
|
|
|
|
src = fetchurl {
|
|
|
|
url = https://github.com/raboof/notion/archive/3-2015061300.tar.gz;
|
|
|
|
sha256 = "3c9d9f35a9fb0d17c263b76fe28f7a1a4a05b7d6140545524cc1effd98c5c305";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = patches ++ stdenv.lib.optional enableXft ./notion-xft_nixos.diff;
|
|
|
|
postPatch = "substituteInPlace system-autodetect.mk --replace '#PRELOAD_MODULES=1' 'PRELOAD_MODULES=1'";
|
2015-09-15 10:13:22 +01:00
|
|
|
buildInputs = [xlibsWrapper lua gettext groff pkgconfig busybox libXinerama libXrandr libX11] ++ stdenv.lib.optional enableXft libXft;
|
2015-07-12 19:00:43 +01:00
|
|
|
|
|
|
|
buildFlags = "LUA_DIR=${lua} X11_PREFIX=/no-such-path PREFIX=\${out}";
|
|
|
|
installFlags = "PREFIX=\${out}";
|
|
|
|
}
|