2020-01-17 01:47:13 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig
|
|
|
|
, lua, gettext, which, groff, xmessage, xterm
|
|
|
|
, readline, fontconfig, libX11, libXext, libSM
|
|
|
|
, libXinerama, libXrandr, libXft
|
|
|
|
, xlibsWrapper, makeWrapper
|
2015-07-12 19:00:43 +01:00
|
|
|
}:
|
|
|
|
|
2020-06-07 22:11:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-08-25 03:33:54 +01:00
|
|
|
pname = "notion";
|
2020-03-17 19:25:03 +00:00
|
|
|
version = "4.0.0";
|
2020-01-17 01:47:13 +00:00
|
|
|
|
2017-08-25 03:33:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raboof";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-03-17 19:25:03 +00:00
|
|
|
sha256 = "0rqfvwkj0j862hf6i4wsmb6185xibsskfj9kwy896qcpcg8w4kk7";
|
2015-07-12 19:00:43 +01:00
|
|
|
};
|
|
|
|
|
2020-01-17 01:47:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper groff ];
|
|
|
|
buildInputs = [ lua gettext which readline fontconfig libX11 libXext libSM
|
|
|
|
libXinerama libXrandr libXft xlibsWrapper ];
|
2017-08-25 03:33:54 +01:00
|
|
|
|
2020-03-17 19:25:03 +00:00
|
|
|
buildFlags = [ "LUA_DIR=${lua}" "X11_PREFIX=/no-such-path" ];
|
2015-07-12 19:00:43 +01:00
|
|
|
|
2020-03-17 19:25:03 +00:00
|
|
|
makeFlags = [ "NOTION_RELEASE=${version}" "PREFIX=\${out}" ];
|
2017-08-25 03:33:54 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/notion \
|
|
|
|
--prefix PATH ":" "${xmessage}/bin:${xterm}/bin" \
|
|
|
|
'';
|
2020-01-17 01:47:13 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-03-17 19:25:03 +00:00
|
|
|
description = "Tiling tabbed window manager";
|
|
|
|
homepage = "https://notionwm.net";
|
2020-01-17 01:47:13 +00:00
|
|
|
license = licenses.lgpl21;
|
2020-03-17 19:25:03 +00:00
|
|
|
maintainers = with maintainers; [ jfb AndersonTorres raboof ];
|
2020-01-17 01:47:13 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2015-07-12 19:00:43 +01:00
|
|
|
}
|