2015-07-12 20:00:43 +02:00
|
|
|
{
|
2017-08-25 04:33:54 +02:00
|
|
|
enableXft ? true, libXft ? null, patches ? [], stdenv, lua, gettext, pkgconfig, xlibsWrapper, libXinerama, libXrandr, libX11,
|
|
|
|
xterm, xmessage, makeWrapper, lib, fetchFromGitHub, mandoc, which
|
2015-07-12 20:00:43 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert enableXft -> libXft != null;
|
|
|
|
|
2017-08-25 04:33:54 +02:00
|
|
|
let
|
|
|
|
pname = "notion";
|
|
|
|
version = "3-2017050501";
|
|
|
|
inherit patches;
|
|
|
|
in
|
2015-07-12 20:00:43 +02:00
|
|
|
stdenv.mkDerivation {
|
2017-08-25 04:33:54 +02:00
|
|
|
name = "${pname}-${version}";
|
2015-07-12 20:00:43 +02:00
|
|
|
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;
|
2017-08-25 04:33:54 +02:00
|
|
|
maintainers = with maintainers; [jfb];
|
2015-07-12 20:00:43 +02:00
|
|
|
};
|
2017-08-25 04:33:54 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raboof";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1wq5ylpsw5lkbm3c2bzmx2ajlngwib30adxlqbvq4bgkaf9zjh65";
|
2015-07-12 20:00:43 +02:00
|
|
|
};
|
|
|
|
|
2017-08-25 04:33:54 +02:00
|
|
|
patches = patches;
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace system-autodetect.mk --replace '#PRELOAD_MODULES=1' 'PRELOAD_MODULES=1'
|
|
|
|
substituteInPlace man/Makefile --replace "nroff -man -Tlatin1" "${mandoc}/bin/mandoc -T man"
|
|
|
|
'';
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [makeWrapper xlibsWrapper lua gettext mandoc which libXinerama libXrandr libX11 ] ++ stdenv.lib.optional enableXft libXft;
|
2015-07-12 20:00:43 +02:00
|
|
|
|
|
|
|
buildFlags = "LUA_DIR=${lua} X11_PREFIX=/no-such-path PREFIX=\${out}";
|
|
|
|
installFlags = "PREFIX=\${out}";
|
2017-08-25 04:33:54 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/notion \
|
|
|
|
--prefix PATH ":" "${xmessage}/bin:${xterm}/bin" \
|
|
|
|
'';
|
2015-07-12 20:00:43 +02:00
|
|
|
}
|