Ratpoison: updated for 1.4.8
Also, adding the infamous service file Closes #4192
This commit is contained in:
parent
6012042805
commit
9c25f350a8
28
nixos/modules/services/x11/window-managers/ratpoison.nix
Normal file
28
nixos/modules/services/x11/window-managers/ratpoison.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.services.xserver.windowManager.ratpoison;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
###### interface
|
||||||
|
options = {
|
||||||
|
services.xserver.windowManager.ratpoison.enable = mkOption {
|
||||||
|
default = false;
|
||||||
|
description = "Enable the Ratpoison window manager.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
###### implementation
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.xserver.windowManager.session = singleton {
|
||||||
|
name = "ratpoison";
|
||||||
|
start = ''
|
||||||
|
${pkgs.ratpoison}/bin/ratpoison &
|
||||||
|
waitPID=$!
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
environment.systemPackages = [ pkgs.ratpoison ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,32 +1,26 @@
|
|||||||
{ stdenv, fetchurl, libX11, inputproto, libXt, libXpm, libXft, fontconfig, freetype
|
{ stdenv, fetchurl, pkgconfig, perl, autoconf, automake
|
||||||
, libXtst, xextproto, readline, libXi, pkgconfig, perl, autoconf, automake }:
|
, libX11, inputproto, libXt, libXpm, libXft, libXtst, xextproto, libXi
|
||||||
|
, fontconfig, freetype, readline
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ratpoison-1.4.6";
|
name = "ratpoison-${version}";
|
||||||
|
version = "1.4.8";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://savannah/ratpoison/${name}.tar.gz";
|
url = "mirror://savannah/ratpoison/${name}.tar.xz";
|
||||||
sha256 = "1y1b38bng0naxfy50asshzg5xr1b2rn88mcgbds42y72d7y9d0za";
|
sha256 = "1w502z55vv7zs45l80nsllqh9fvfwjfdfi11xy1qikhzdmirains";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ libX11 inputproto libXt libXpm libXft fontconfig freetype libXtst
|
[ pkgconfig perl autoconf automake
|
||||||
xextproto readline libXi pkgconfig perl autoconf automake
|
libX11 inputproto libXt libXpm libXft libXtst xextproto libXi
|
||||||
];
|
fontconfig freetype readline ];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-I${freetype}/include/freetype2"; # urgh
|
meta = with stdenv.lib; {
|
||||||
|
|
||||||
preConfigure = "autoreconf -vf"; # needed because of the patch above
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
mkdir -p $out/share/emacs/site-lisp
|
|
||||||
mv "$out/share/ratpoison/"*.el $out/share/emacs/site-lisp/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = "http://www.nongnu.org/ratpoison/";
|
homepage = "http://www.nongnu.org/ratpoison/";
|
||||||
description = "Simple mouse-free tiling window manager";
|
description = "Simple mouse-free tiling window manager";
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
|
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Ratpoison is a simple window manager with no fat library
|
Ratpoison is a simple window manager with no fat library
|
||||||
@ -43,7 +37,7 @@ stdenv.mkDerivation rec {
|
|||||||
cripples Emacs and other quality pieces of software.
|
cripples Emacs and other quality pieces of software.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
hydraPlatforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [ ];
|
maintainers = [ maintainers.AndersonTorres ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user