2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, lua, gettext, which, groff, xmessage, xterm
|
|
|
|
, readline, fontconfig, libX11, libXext, libSM
|
|
|
|
, libXinerama, libXrandr, libXft
|
2022-10-30 15:09:59 +00:00
|
|
|
, makeWrapper
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "notion";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "4.0.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raboof";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-12-25 13:55:36 +00:00
|
|
|
sha256 = "14swd0yqci8lxn259fkd9w92bgyf4rmjwgvgyqp78wlfix6ai4mv";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
# error: 'PATH_MAX' undeclared
|
|
|
|
postPatch = ''
|
|
|
|
sed 1i'#include <linux/limits.h>' -i mod_notionflux/notionflux/notionflux.c
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper groff ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ lua gettext which readline fontconfig libX11 libXext libSM
|
2022-10-30 15:09:59 +00:00
|
|
|
libXinerama libXrandr libXft ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildFlags = [ "LUA_DIR=${lua}" "X11_PREFIX=/no-such-path" ];
|
|
|
|
|
|
|
|
makeFlags = [ "NOTION_RELEASE=${version}" "PREFIX=\${out}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/notion \
|
|
|
|
--prefix PATH ":" "${xmessage}/bin:${xterm}/bin" \
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tiling tabbed window manager";
|
|
|
|
homepage = "https://notionwm.net";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ jfb AndersonTorres raboof ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|