Merge pull request #13739 from romildo/update.jwm

jwm: 2.2.2 -> 1406
This commit is contained in:
Christoph Hrdinka 2016-03-08 18:23:52 +01:00
commit 1e3fef77d5
3 changed files with 43 additions and 16 deletions

View file

@ -17,6 +17,7 @@ in
./fluxbox.nix
./herbstluftwm.nix
./i3.nix
./jwm.nix
./metacity.nix
./openbox.nix
./notion.nix

View file

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.xserver.windowManager.jwm;
in
{
###### interface
options = {
services.xserver.windowManager.jwm.enable = mkEnableOption "jwm";
};
###### implementation
config = mkIf cfg.enable {
services.xserver.windowManager.session = singleton {
name = "jwm";
start = ''
${pkgs.jwm}/bin/jwm &
waitPID=$!
'';
};
environment.systemPackages = [ pkgs.jwm ];
};
}

View file

@ -1,29 +1,30 @@
{ stdenv, fetchurl, libX11, libXext, libXinerama, libXpm, libXft, freetype,
fontconfig }:
{ stdenv, fetchurl, pkgconfig, automake, autoconf, libtool, which, xorg,
libX11, libXext, libXinerama, libXpm, libXft, libXau, libXdmcp, libpng,
libjpeg, expat, xproto, xextproto, xineramaproto, librsvg, gettext,
freetype, fontconfig }:
stdenv.mkDerivation rec {
name = "jwm-2.2.2";
name = "jwm-${version}";
version = "1406";
src = fetchurl {
url = "http://www.joewing.net/projects/jwm/releases/${name}.tar.xz";
sha256 = "0nhyy78c6imk85d47bakk460x0cfhkyghqq82zghmb00dhwiryln";
url = "https://github.com/joewing/jwm/archive/s${version}.tar.gz";
sha256 = "0yk22b7cshhyfpcqnb4p59yxspx95xg9yp1kmkxi2fyw95cacab4";
};
buildInputs = [ libX11 libXext libXinerama libXpm libXft freetype
fontconfig ];
nativeBuildInputs = [ pkgconfig automake autoconf libtool which ];
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2 "
export NIX_LDFLAGS="$NIX_LDFLAGS -lXft -lfreetype -lfontconfig "
'';
buildInputs = [ libX11 libXext libXinerama libXpm libXft xorg.libXrender
libXau libXdmcp libpng libjpeg expat xproto xextproto xineramaproto
librsvg gettext freetype fontconfig ];
postInstall =
''
sed -i -e s/rxvt/xterm/g $out/etc/system.jwmrc
sed -i -e "s/.*Swallow.*\|.*xload.*//" $out/etc/system.jwmrc
'';
preConfigure = "./autogen.sh";
meta = {
homepage = "http://joewing.net/projects/jwm/";
description = "A window manager for X11 that requires only Xlib";
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.romildo ];
platforms = stdenv.lib.platforms.unix;
};
}