nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 92 lines 1.4 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fontconfig, 6 gettext, 7 groff, 8 libSM, 9 libX11, 10 libXext, 11 libXft, 12 libXinerama, 13 libXrandr, 14 lua, 15 makeWrapper, 16 pkg-config, 17 readline, 18 which, 19 xmessage, 20 xterm, 21}: 22stdenv.mkDerivation (finalAttrs: { 23 pname = "notion"; 24 version = "4.0.4"; 25 26 src = fetchFromGitHub { 27 owner = "raboof"; 28 repo = "notion"; 29 tag = finalAttrs.version; 30 hash = "sha256-L7WL8zn1Qkf5sqrhqZJqFe4B1l9ULXI3pt3Jpc87huk="; 31 }; 32 33 nativeBuildInputs = [ 34 gettext 35 groff 36 lua 37 makeWrapper 38 pkg-config 39 which 40 ]; 41 42 buildInputs = [ 43 fontconfig 44 libSM 45 libX11 46 libXext 47 libXft 48 libXinerama 49 libXrandr 50 lua 51 readline 52 ]; 53 54 outputs = [ 55 "out" 56 "man" 57 ]; 58 59 strictDeps = true; 60 61 buildFlags = [ 62 "LUA_DIR=${lua}" 63 "X11_PREFIX=/no-such-path" 64 ]; 65 66 makeFlags = [ 67 "NOTION_RELEASE=${finalAttrs.version}" 68 "PREFIX=${placeholder "out"}" 69 ]; 70 71 postInstall = '' 72 wrapProgram $out/bin/notion \ 73 --prefix PATH ":" "${ 74 lib.makeBinPath [ 75 xmessage 76 xterm 77 ] 78 }" \ 79 ''; 80 81 meta = { 82 description = "Tiling tabbed window manager"; 83 homepage = "https://notionwm.net"; 84 license = lib.licenses.lgpl21; 85 mainProgram = "notion"; 86 maintainers = with lib.maintainers; [ 87 raboof 88 NotAShelf 89 ]; 90 platforms = lib.platforms.linux; 91 }; 92})