Ratpoison: updated for 1.4.8

Also, adding the infamous service file

Closes #4192

authored by AndersonTorres and committed by Mateusz Kowalczyk 9c25f350 60120428

+43 -21
+28
nixos/modules/services/x11/window-managers/ratpoison.nix
··· 1 + { config, lib, pkgs, ... }: 2 + 3 + with lib; 4 + 5 + let 6 + cfg = config.services.xserver.windowManager.ratpoison; 7 + in 8 + { 9 + ###### interface 10 + options = { 11 + services.xserver.windowManager.ratpoison.enable = mkOption { 12 + default = false; 13 + description = "Enable the Ratpoison window manager."; 14 + }; 15 + }; 16 + 17 + ###### implementation 18 + config = mkIf cfg.enable { 19 + services.xserver.windowManager.session = singleton { 20 + name = "ratpoison"; 21 + start = '' 22 + ${pkgs.ratpoison}/bin/ratpoison & 23 + waitPID=$! 24 + ''; 25 + }; 26 + environment.systemPackages = [ pkgs.ratpoison ]; 27 + }; 28 + }
+15 -21
pkgs/applications/window-managers/ratpoison/default.nix
··· 1 - { stdenv, fetchurl, libX11, inputproto, libXt, libXpm, libXft, fontconfig, freetype 2 - , libXtst, xextproto, readline, libXi, pkgconfig, perl, autoconf, automake }: 1 + { stdenv, fetchurl, pkgconfig, perl, autoconf, automake 2 + , libX11, inputproto, libXt, libXpm, libXft, libXtst, xextproto, libXi 3 + , fontconfig, freetype, readline 4 + }: 3 5 4 6 stdenv.mkDerivation rec { 5 - name = "ratpoison-1.4.6"; 7 + name = "ratpoison-${version}"; 8 + version = "1.4.8"; 6 9 7 10 src = fetchurl { 8 - url = "mirror://savannah/ratpoison/${name}.tar.gz"; 9 - sha256 = "1y1b38bng0naxfy50asshzg5xr1b2rn88mcgbds42y72d7y9d0za"; 11 + url = "mirror://savannah/ratpoison/${name}.tar.xz"; 12 + sha256 = "1w502z55vv7zs45l80nsllqh9fvfwjfdfi11xy1qikhzdmirains"; 10 13 }; 11 14 12 15 buildInputs = 13 - [ libX11 inputproto libXt libXpm libXft fontconfig freetype libXtst 14 - xextproto readline libXi pkgconfig perl autoconf automake 15 - ]; 16 - 17 - NIX_CFLAGS_COMPILE = "-I${freetype}/include/freetype2"; # urgh 18 - 19 - preConfigure = "autoreconf -vf"; # needed because of the patch above 20 - 21 - postInstall = '' 22 - mkdir -p $out/share/emacs/site-lisp 23 - mv "$out/share/ratpoison/"*.el $out/share/emacs/site-lisp/ 24 - ''; 16 + [ pkgconfig perl autoconf automake 17 + libX11 inputproto libXt libXpm libXft libXtst xextproto libXi 18 + fontconfig freetype readline ]; 25 19 26 - meta = { 20 + meta = with stdenv.lib; { 27 21 homepage = "http://www.nongnu.org/ratpoison/"; 28 22 description = "Simple mouse-free tiling window manager"; 29 - license = stdenv.lib.licenses.gpl2Plus; 23 + license = licenses.gpl2Plus; 30 24 31 25 longDescription = '' 32 26 Ratpoison is a simple window manager with no fat library ··· 43 37 cripples Emacs and other quality pieces of software. 44 38 ''; 45 39 46 - hydraPlatforms = stdenv.lib.platforms.linux; 47 - maintainers = [ ]; 40 + platforms = platforms.linux; 41 + maintainers = [ maintainers.AndersonTorres ]; 48 42 }; 49 43 }