17 stdenv.mkDerivation (finalAttrs: {
21 src = fetchFromGitHub {
24 rev = finalAttrs.version;
25 hash = "sha256-xMJRiLNtwVRQf9HiCF3ClLKEmdDNxcY35IYxe+L7+Hk=";
51 sed -i --regexp-extended 's/(pkg_verstr=").*(")/\1${finalAttrs.version}\2/' configure
55 patchShebangs configure
58 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-D_C99_SOURCE";
64 comment = "A healthy, bite-sized window manager";
65 desktopName = "Berry Window Manager";
66 genericName = "Berry Window Manager";
67 categories = [ "Utility" ];
72 homepage = "https://berrywm.org/";
73 description = "Healthy, bite-sized window manager";
75 berry is a healthy, bite-sized window manager written in C for unix
76 systems. Its main features include:
78 - Controlled via a powerful command-line client, allowing users to control
79 windows via a hotkey daemon such as sxhkd or expand functionality via
81 - Small, hackable source code.
82 - Extensible themeing options with double borders, title bars, and window
84 - Intuitively place new windows in unoccupied spaces.
87 license = lib.licenses.mit;
88 mainProgram = "berry";
89 maintainers = [ lib.maintainers.AndersonTorres ];
90 inherit (libX11.meta) platforms;