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

40 lines
1.1 KiB
Nix
Raw Normal View History

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