nixpkgs-suyu/pkgs/applications/window-managers/berry/default.nix
2022-10-24 13:35:12 +00:00

81 lines
1.7 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, copyDesktopItems
, fontconfig
, freetype
, libX11
, libXext
, libXft
, libXinerama
, makeDesktopItem
, pkg-config
, which
}:
stdenv.mkDerivation rec {
pname = "berry";
version = "0.1.12";
src = fetchFromGitHub {
owner = "JLErvin";
repo = pname;
rev = version;
hash = "sha256-xMJRiLNtwVRQf9HiCF3ClLKEmdDNxcY35IYxe+L7+Hk=";
};
nativeBuildInputs = [
copyDesktopItems
pkg-config
which
];
buildInputs =[
libX11
libXext
libXft
libXinerama
fontconfig
freetype
];
postPatch = ''
sed -i --regexp-extended 's/(pkg_verstr=").*(")/\1${version}\2/' configure
'';
preConfigure = ''
patchShebangs configure
'';
desktopItems = [
(makeDesktopItem {
name = pname;
exec = "berry";
comment = meta.description;
desktopName = "Berry Window Manager";
genericName = "Berry Window Manager";
categories = [ "Utility" ];
})
];
meta = with lib; {
homepage = "https://berrywm.org/";
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;
};
}