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