diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-09-24 17:00:21 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-09-26 12:13:10 -0300 |
commit | 3436c16da18e64d2f3fdef99f0d29d30e89b0315 (patch) | |
tree | 44c7ffbf3490b795404e898e01cbb4ee15a7e689 /pkgs/by-name/no | |
parent | 5330af0c9774f4558e6bb679b2223ac8579baa6d (diff) |
notion: migrate to by-name
Diffstat (limited to 'pkgs/by-name/no')
-rw-r--r-- | pkgs/by-name/no/notion/package.nix | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/pkgs/by-name/no/notion/package.nix b/pkgs/by-name/no/notion/package.nix new file mode 100644 index 0000000000000..9ee84b130bf46 --- /dev/null +++ b/pkgs/by-name/no/notion/package.nix @@ -0,0 +1,86 @@ +{ lib +, stdenv +, fetchFromGitHub +, fontconfig +, gettext +, groff +, libSM +, libX11 +, libXext +, libXft +, libXinerama +, libXrandr +, lua +, makeWrapper +, pkg-config +, readline +, which +, xmessage +, xterm +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "notion"; + version = "4.0.2"; + + 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 + ]; + + 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"}" + ]; + + postInstall = '' + wrapProgram $out/bin/notion \ + --prefix PATH ":" "${lib.makeBinPath [ xmessage xterm ]}" \ + ''; + + meta = { + 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; + }; +}) |