nixpkgs/pkgs/applications/window-managers/notion/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

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
}:
2020-01-17 01:47:13 +00:00
stdenv.mkDerivation rec{
2017-08-25 02:33:54 +00:00
pname = "notion";
2020-01-17 01:47:13 +00:00
version = "3-2019050101";
2017-08-25 02:33:54 +00:00
src = fetchFromGitHub {
owner = "raboof";
repo = pname;
rev = version;
2020-01-17 01:47:13 +00:00
sha256 = "09kvgqyw0gnj3jhz9gmwq81ak8qy32vyanx1hw79r6m181aysspz";
};
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 02:33:54 +00:00
2020-01-17 01:47:13 +00:00
buildFlags = [ "CC=cc" "LUA_DIR=${lua}" "X11_PREFIX=/no-such-path" ];
2020-01-17 01:47:13 +00:00
makeFlags = [ "PREFIX=\${out}" ];
2017-08-25 02:33:54 +00:00
postInstall = ''
wrapProgram $out/bin/notion \
--prefix PATH ":" "${xmessage}/bin:${xterm}/bin" \
'';
2020-01-17 01:47:13 +00:00
meta = with stdenv.lib; {
description = "Tiling tabbed window manager, follow-on to the Ion";
homepage = "https://notionwm.net/";
license = licenses.lgpl21;
maintainers = with maintainers; [ jfb AndersonTorres ];
platforms = platforms.linux;
};
}