2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-11-17 14:11:18 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, libX11
|
2020-12-08 19:10:27 +01:00
|
|
|
, libXext
|
2020-11-17 14:11:18 +01:00
|
|
|
, libXft
|
|
|
|
, libXinerama
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
|
|
|
}:
|
2020-05-13 02:53:59 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "berry";
|
2020-11-17 14:11:18 +01:00
|
|
|
version = "0.1.7";
|
2020-05-13 02:53:59 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JLErvin";
|
2020-11-17 14:11:18 +01:00
|
|
|
repo = pname;
|
2020-05-13 02:53:59 +02:00
|
|
|
rev = version;
|
2020-11-17 14:11:18 +01:00
|
|
|
sha256 = "sha256-2kFVOE5l1KQvDb5KDL7y0p4M7awJLrxJF871cyc0YZ8=";
|
2020-05-13 02:53:59 +02:00
|
|
|
};
|
|
|
|
|
2020-11-17 14:11:18 +01:00
|
|
|
buildInputs =[
|
|
|
|
libX11
|
2020-12-08 19:10:27 +01:00
|
|
|
libXext
|
2020-11-17 14:11:18 +01:00
|
|
|
libXft
|
|
|
|
libXinerama
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
];
|
2020-05-13 02:53:59 +02:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=( PREFIX="${placeholder "out"}"
|
|
|
|
X11INC="${libX11.dev}/include"
|
|
|
|
X11LIB="${libX11}/lib"
|
|
|
|
XINERAMALIBS="-lXinerama"
|
|
|
|
XINERAMAFLAGS="-DXINERAMA"
|
|
|
|
FREETYPELIBS="-lfontconfig -lXft"
|
|
|
|
FREETYPEINC="${freetype.dev}/include/freetype2" )
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-05-13 02:53:59 +02:00
|
|
|
description = "A healthy, bite-sized window manager";
|
|
|
|
longDescription = ''
|
|
|
|
berry is a healthy, bite-sized window manager written in C for unix
|
|
|
|
systems. Its main features include:
|
|
|
|
|
|
|
|
- Controlled via a powerful command-line client, allowing users to control
|
|
|
|
windows via a hotkey daemon such as sxhkd or expand functionality via
|
|
|
|
shell scripts.
|
|
|
|
- Small, hackable source code.
|
|
|
|
- Extensible themeing options with double borders, title bars, and window
|
|
|
|
text.
|
|
|
|
- Intuitively place new windows in unoccupied spaces.
|
|
|
|
- Virtual desktops.
|
|
|
|
'';
|
|
|
|
homepage = "https://berrywm.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|