nixpkgs/pkgs/applications/window-managers/berry/default.nix

80 lines
1.7 KiB
Nix
Raw Normal View History

2022-01-05 21:07:41 +00:00
{ lib
, stdenv
2020-11-17 13:11:18 +00:00
, fetchFromGitHub
2022-01-05 21:07:41 +00:00
, copyDesktopItems
, fontconfig
, freetype
2020-11-17 13:11:18 +00:00
, libX11
2020-12-08 18:10:27 +00:00
, libXext
2020-11-17 13:11:18 +00:00
, libXft
, libXinerama
2022-01-05 21:07:41 +00:00
, makeDesktopItem
, pkg-config
, which
2020-11-17 13:11:18 +00:00
}:
stdenv.mkDerivation rec {
pname = "berry";
2022-01-05 21:07:41 +00:00
version = "0.1.9";
src = fetchFromGitHub {
owner = "JLErvin";
2020-11-17 13:11:18 +00:00
repo = pname;
rev = version;
2022-01-05 21:07:41 +00:00
hash = "sha256-E1kjqSv2eylJ/9EGcxQrJ2P7VaehyUiirk0TxlPWSnM=";
};
2022-01-05 21:07:41 +00:00
nativeBuildInputs = [
copyDesktopItems
pkg-config
which
];
2020-11-17 13:11:18 +00:00
buildInputs =[
libX11
2020-12-08 18:10:27 +00:00
libXext
2020-11-17 13:11:18 +00:00
libXft
libXinerama
fontconfig
freetype
];
2022-01-05 21:07:41 +00:00
preConfigure = ''
patchShebangs configure
'';
2022-01-05 21:07:41 +00:00
desktopItems = [
(makeDesktopItem {
name = pname;
exec = "berry";
comment = meta.description;
desktopName = "Berry Window Manager";
genericName = "Berry Window Manager";
categories = "Utility;";
})
];
meta = with lib; {
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;
};
}
2022-01-05 21:07:41 +00:00
# TODO: report upstream that `which` is not POSIX; the `command` shell builtin
# should be used instead