hackedbox: init at 0.8.5.1

This commit is contained in:
AndersonTorres 2022-08-08 01:16:10 -03:00
parent 901978e1fd
commit 7b6ad60ab4
4 changed files with 89 additions and 0 deletions

View file

@ -21,6 +21,7 @@ in
./fluxbox.nix
./fvwm2.nix
./fvwm3.nix
./hackedbox.nix
./herbstluftwm.nix
./i3.nix
./jwm.nix

View file

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

View file

@ -0,0 +1,61 @@
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, freetype
, fribidi
, imlib2
, libX11
, libXext
, libXft
, libXinerama
, libXpm
, libXrandr
, libXrender
, pkg-config
, xorgproto
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hackedbox";
version = "0.8.5.1";
src = fetchFromGitHub {
owner = "museoa";
repo = "hackedbox";
rev = finalAttrs.version;
hash = "sha256-hxfbEj7UxQ19xhetmdi0iyK6ceLUfUvAAyyTbNivlLQ=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
freetype
fribidi
imlib2
libX11
libXext
libXft
libXinerama
libXpm
libXrandr
libXrender
xorgproto
];
configureFlags = [
"--x-includes=${libX11.dev}/include"
"--x-libraries=${libX11.out}/lib"
];
meta = with lib; {
description = "A bastard hacked offspring of Blackbox";
homepage = "http://github.com/museoa/hackedbox/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ AndersonTorres ];
inherit (libX11.meta) platforms;
};
})

View file

@ -27324,6 +27324,8 @@ with pkgs;
fluxbox = callPackage ../applications/window-managers/fluxbox { };
hackedbox = callPackage ../applications/window-managers/hackedbox { };
fomp = callPackage ../applications/audio/fomp { };
formatter = callPackage ../applications/misc/formatter { };