3
0
Fork 0
forked from mirrors/nixpkgs

2bwm: init at 0.2

This commit is contained in:
sternenseemann 2017-03-24 15:25:31 +01:00 committed by Franz Pletz
parent f9a1060199
commit fd3a99633b
4 changed files with 72 additions and 0 deletions

View file

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

View file

@ -8,6 +8,7 @@ in
{
imports = [
./2bwm.nix
./afterstep.nix
./bspwm.nix
./compiz.nix

View file

@ -0,0 +1,30 @@
{ stdenv, fetchFromGitHub, patches
, libxcb, xcbutilkeysyms, xcbutilwm
, libX11, xcbutil, xcbutilxrm }:
stdenv.mkDerivation rec {
version = "0.2";
name = "2bwm-${version}";
src = fetchFromGitHub {
owner = "venam";
repo = "2bwm";
rev = "v${version}";
sha256 = "1la1ixpm5knsj2gvdcmxzj1jfbzxvhmgzps4f5kbvx5047xc6ici";
};
# Allow users set their own list of patches
inherit patches;
buildInputs = [ libxcb xcbutilkeysyms xcbutilwm libX11 xcbutil xcbutilxrm ];
installPhase = "make install DESTDIR=$out PREFIX=\"\"";
meta = with stdenv.lib; {
homepage = "https://github.com/venam/2bwm";
description = "A fast floating WM written over the XCB library and derived from mcwm";
license = licenses.mit;
maintainers = [ maintainers.sternenseemann ];
platforms = platforms.unix;
};
}

View file

@ -12675,6 +12675,10 @@ with pkgs;
### APPLICATIONS
"2bwm" = callPackage ../applications/window-managers/2bwm {
patches = config."2bwm".patches or [];
};
a2jmidid = callPackage ../applications/audio/a2jmidid { };
aacgain = callPackage ../applications/audio/aacgain { };