2022-01-05 22:07:41 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-11-17 14:11:18 +01:00
|
|
|
, fetchFromGitHub
|
2022-01-05 22:07:41 +01:00
|
|
|
, copyDesktopItems
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
2020-11-17 14:11:18 +01:00
|
|
|
, libX11
|
2020-12-08 19:10:27 +01:00
|
|
|
, libXext
|
2020-11-17 14:11:18 +01:00
|
|
|
, libXft
|
|
|
|
, libXinerama
|
2022-01-05 22:07:41 +01:00
|
|
|
, makeDesktopItem
|
|
|
|
, pkg-config
|
|
|
|
, which
|
2020-11-17 14:11:18 +01:00
|
|
|
}:
|
2020-05-13 02:53:59 +02:00
|
|
|
|
2023-09-24 04:47:57 +02:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-05-13 02:53:59 +02:00
|
|
|
pname = "berry";
|
2022-10-24 15:35:12 +02:00
|
|
|
version = "0.1.12";
|
2020-05-13 02:53:59 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JLErvin";
|
2023-09-24 04:47:57 +02:00
|
|
|
repo = "berry";
|
|
|
|
rev = finalAttrs.version;
|
2022-10-24 15:35:12 +02:00
|
|
|
hash = "sha256-xMJRiLNtwVRQf9HiCF3ClLKEmdDNxcY35IYxe+L7+Hk=";
|
2020-05-13 02:53:59 +02:00
|
|
|
};
|
|
|
|
|
2022-01-05 22:07:41 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
copyDesktopItems
|
|
|
|
pkg-config
|
|
|
|
which
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
2023-09-24 04:47:57 +02:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
2022-08-20 23:00:04 +02:00
|
|
|
postPatch = ''
|
2023-09-24 04:47:57 +02:00
|
|
|
sed -i --regexp-extended 's/(pkg_verstr=").*(")/\1${finalAttrs.version}\2/' configure
|
2022-08-20 23:00:04 +02:00
|
|
|
'';
|
|
|
|
|
2022-01-05 22:07:41 +01:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs configure
|
2020-05-13 02:53:59 +02:00
|
|
|
'';
|
|
|
|
|
2022-01-05 22:07:41 +01:00
|
|
|
desktopItems = [
|
|
|
|
(makeDesktopItem {
|
2023-09-24 04:47:57 +02:00
|
|
|
name = "berry";
|
2022-01-05 22:07:41 +01:00
|
|
|
exec = "berry";
|
2023-09-24 04:47:57 +02:00
|
|
|
comment = "A healthy, bite-sized window manager";
|
2022-01-05 22:07:41 +01:00
|
|
|
desktopName = "Berry Window Manager";
|
|
|
|
genericName = "Berry Window Manager";
|
2022-02-22 15:56:15 +01:00
|
|
|
categories = [ "Utility" ];
|
2022-01-05 22:07:41 +01:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-09-24 04:47:57 +02:00
|
|
|
meta = {
|
2022-03-09 15:54:28 +01:00
|
|
|
homepage = "https://berrywm.org/";
|
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.
|
|
|
|
'';
|
2023-09-24 04:47:57 +02:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
mainProgram = "berry";
|
|
|
|
maintainers = [ lib.maintainers.AndersonTorres ];
|
|
|
|
inherit (libX11.meta) platforms;
|
2020-05-13 02:53:59 +02:00
|
|
|
};
|
2023-09-24 04:47:57 +02:00
|
|
|
})
|