nixpkgs/pkgs/by-name/no/notion/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

87 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, fontconfig
, gettext
, groff
, libSM
, libX11
, libXext
, libXft
, libXinerama
, libXrandr
, lua
, makeWrapper
, pkg-config
, readline
, which
, xmessage
, xterm
}:
stdenv.mkDerivation (finalAttrs: {
2017-08-25 02:33:54 +00:00
pname = "notion";
version = "4.0.2";
2020-01-17 01:47:13 +00:00
2017-08-25 02:33:54 +00:00
src = fetchFromGitHub {
owner = "raboof";
repo = "notion";
rev = finalAttrs.version;
hash = "sha256-u5KoTI+OcnQu9m8/Lmsmzr8lEk9tulSE7RRFhj1oXJM=";
};
# error: 'PATH_MAX' undeclared
postPatch = ''
sed 1i'#include <linux/limits.h>' -i mod_notionflux/notionflux/notionflux.c
'';
nativeBuildInputs = [
gettext
groff
lua
makeWrapper
pkg-config
which
];
2017-08-25 02:33:54 +00:00
buildInputs = [
fontconfig
libSM
libX11
libXext
libXft
libXinerama
libXrandr
lua
readline
];
outputs = [ "out" "man" ];
strictDeps = true;
buildFlags = [
"LUA_DIR=${lua}"
"X11_PREFIX=/no-such-path"
];
makeFlags = [
"NOTION_RELEASE=${finalAttrs.version}"
"PREFIX=${placeholder "out"}"
];
2017-08-25 02:33:54 +00:00
postInstall = ''
wrapProgram $out/bin/notion \
--prefix PATH ":" "${lib.makeBinPath [ xmessage xterm ]}" \
2017-08-25 02:33:54 +00:00
'';
2020-01-17 01:47:13 +00:00
meta = {
2020-03-17 19:25:03 +00:00
description = "Tiling tabbed window manager";
homepage = "https://notionwm.net";
license = lib.licenses.lgpl21;
mainProgram = "notion";
maintainers = with lib.maintainers; [ jfb AndersonTorres raboof ];
platforms = lib.platforms.linux;
2020-01-17 01:47:13 +00:00
};
})