diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-09-23 23:51:55 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-09-26 12:13:10 -0300 |
commit | 5330af0c9774f4558e6bb679b2223ac8579baa6d (patch) | |
tree | 44b2e5de943bb43fe10e5aa60bdce3afda2636f4 /pkgs/by-name/be | |
parent | 90f93ed379ffe3448882dd1997db22b041011ce0 (diff) |
berry: migrate to by-name
Diffstat (limited to 'pkgs/by-name/be')
-rw-r--r-- | pkgs/by-name/be/berry/package.nix | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/pkgs/by-name/be/berry/package.nix b/pkgs/by-name/be/berry/package.nix new file mode 100644 index 0000000000000..6d053c77fa596 --- /dev/null +++ b/pkgs/by-name/be/berry/package.nix @@ -0,0 +1,86 @@ +{ lib +, stdenv +, fetchFromGitHub +, copyDesktopItems +, fontconfig +, freetype +, libX11 +, libXext +, libXft +, libXinerama +, makeDesktopItem +, pkg-config +, which +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "berry"; + version = "0.1.12"; + + src = fetchFromGitHub { + owner = "JLErvin"; + repo = "berry"; + rev = finalAttrs.version; + hash = "sha256-xMJRiLNtwVRQf9HiCF3ClLKEmdDNxcY35IYxe+L7+Hk="; + }; + + nativeBuildInputs = [ + copyDesktopItems + pkg-config + which + ]; + + buildInputs =[ + libX11 + libXext + libXft + libXinerama + fontconfig + freetype + ]; + + outputs = [ "out" "man" ]; + + strictDeps = true; + + postPatch = '' + sed -i --regexp-extended 's/(pkg_verstr=").*(")/\1${finalAttrs.version}\2/' configure + ''; + + preConfigure = '' + patchShebangs configure + ''; + + desktopItems = [ + (makeDesktopItem { + name = "berry"; + exec = "berry"; + comment = "A healthy, bite-sized window manager"; + desktopName = "Berry Window Manager"; + genericName = "Berry Window Manager"; + categories = [ "Utility" ]; + }) + ]; + + meta = { + 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 = lib.licenses.mit; + mainProgram = "berry"; + maintainers = [ lib.maintainers.AndersonTorres ]; + inherit (libX11.meta) platforms; + }; +}) |