2022-01-07 04:07:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-11-21 19:51:51 +00:00
|
|
|
, fetchFromGitHub
|
2022-01-07 04:07:37 +00:00
|
|
|
, copyDesktopItems
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
2020-11-21 19:51:51 +00:00
|
|
|
, libX11
|
2020-12-09 12:39:15 +00:00
|
|
|
, libXext
|
2020-11-21 19:51:51 +00:00
|
|
|
, libXft
|
|
|
|
, libXinerama
|
2022-01-07 04:07:37 +00:00
|
|
|
, makeDesktopItem
|
|
|
|
, pkg-config
|
|
|
|
, which
|
2020-11-21 19:51:51 +00:00
|
|
|
}:
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "berry";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "0.1.11";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JLErvin";
|
2020-11-21 19:51:51 +00:00
|
|
|
repo = pname;
|
2020-05-15 21:57:56 +00:00
|
|
|
rev = version;
|
2022-04-15 01:41:22 +00:00
|
|
|
hash = "sha256-cs1NVwaANMIteCQuGqPcEWuUbfJulhjmfWnlU8Eb2OM=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
copyDesktopItems
|
|
|
|
pkg-config
|
|
|
|
which
|
|
|
|
];
|
|
|
|
|
2020-11-21 19:51:51 +00:00
|
|
|
buildInputs =[
|
|
|
|
libX11
|
2020-12-09 12:39:15 +00:00
|
|
|
libXext
|
2020-11-21 19:51:51 +00:00
|
|
|
libXft
|
|
|
|
libXinerama
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i --regexp-extended 's/(pkg_verstr=").*(")/\1${version}\2/' configure
|
|
|
|
'';
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs configure
|
2020-05-15 21:57:56 +00:00
|
|
|
'';
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
desktopItems = [
|
|
|
|
(makeDesktopItem {
|
|
|
|
name = pname;
|
|
|
|
exec = "berry";
|
|
|
|
comment = meta.description;
|
|
|
|
desktopName = "Berry Window Manager";
|
|
|
|
genericName = "Berry Window Manager";
|
2022-03-05 16:20:37 +00:00
|
|
|
categories = [ "Utility" ];
|
2022-01-07 04:07:37 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://berrywm.org/";
|
2020-05-15 21:57:56 +00: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.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|