lol

Merge pull request #28723 from moaxcp/master

notion: 3-2015061300 -> 3-2017050501

authored by

Joachim F and committed by
GitHub
4e901ff2 e480b4ba

+26 -15
+26 -15
pkgs/applications/window-managers/notion/default.nix
··· 1 1 { 2 - enableXft ? true, libXft ? null, 3 - patches ? [], 4 - stdenv, fetchurl, 5 - lua, gettext, groff, 6 - pkgconfig, busybox, 7 - xlibsWrapper, libXinerama, libXrandr, libX11 2 + enableXft ? true, libXft ? null, patches ? [], stdenv, lua, gettext, pkgconfig, xlibsWrapper, libXinerama, libXrandr, libX11, 3 + xterm, xmessage, makeWrapper, lib, fetchFromGitHub, mandoc, which 8 4 }: 9 5 10 6 assert enableXft -> libXft != null; 11 7 8 + let 9 + pname = "notion"; 10 + version = "3-2017050501"; 11 + inherit patches; 12 + in 12 13 stdenv.mkDerivation { 13 - name = "notion"; 14 - version = "3-2015061300"; 14 + name = "${pname}-${version}"; 15 15 meta = with stdenv.lib; { 16 16 description = "Tiling tabbed window manager, follow-on to the ion window manager"; 17 17 homepage = http://notion.sourceforge.net; 18 18 platforms = platforms.linux; 19 19 license = licenses.notion_lgpl; 20 - maintainers = [maintainers.jfb]; 20 + maintainers = with maintainers; [jfb]; 21 21 }; 22 - src = fetchurl { 23 - url = https://github.com/raboof/notion/archive/3-2015061300.tar.gz; 24 - sha256 = "3c9d9f35a9fb0d17c263b76fe28f7a1a4a05b7d6140545524cc1effd98c5c305"; 22 + src = fetchFromGitHub { 23 + owner = "raboof"; 24 + repo = pname; 25 + rev = version; 26 + sha256 = "1wq5ylpsw5lkbm3c2bzmx2ajlngwib30adxlqbvq4bgkaf9zjh65"; 25 27 }; 26 28 27 - patches = patches ++ stdenv.lib.optional enableXft ./notion-xft_nixos.diff; 28 - postPatch = "substituteInPlace system-autodetect.mk --replace '#PRELOAD_MODULES=1' 'PRELOAD_MODULES=1'"; 29 - buildInputs = [xlibsWrapper lua gettext groff pkgconfig busybox libXinerama libXrandr libX11] ++ stdenv.lib.optional enableXft libXft; 29 + patches = patches; 30 + postPatch = '' 31 + substituteInPlace system-autodetect.mk --replace '#PRELOAD_MODULES=1' 'PRELOAD_MODULES=1' 32 + substituteInPlace man/Makefile --replace "nroff -man -Tlatin1" "${mandoc}/bin/mandoc -T man" 33 + ''; 34 + 35 + buildInputs = [makeWrapper xlibsWrapper lua gettext mandoc pkgconfig which libXinerama libXrandr libX11 ] ++ stdenv.lib.optional enableXft libXft; 30 36 31 37 buildFlags = "LUA_DIR=${lua} X11_PREFIX=/no-such-path PREFIX=\${out}"; 32 38 installFlags = "PREFIX=\${out}"; 39 + 40 + postInstall = '' 41 + wrapProgram $out/bin/notion \ 42 + --prefix PATH ":" "${xmessage}/bin:${xterm}/bin" \ 43 + ''; 33 44 }