From 4e722f57f57d17141044c8914e1f91027c9ff844 Mon Sep 17 00:00:00 2001 From: yaaaarn <30006414+yaaaarn@users.noreply.github.com> Date: Wed, 8 Jul 2026 05:11:11 +0200 Subject: [PATCH] cpond: init at 0-unstable-2025-11-23 --- pkgs/by-name/cp/cpond/package.nix | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 pkgs/by-name/cp/cpond/package.nix diff --git a/pkgs/by-name/cp/cpond/package.nix b/pkgs/by-name/cp/cpond/package.nix new file mode 100644 index 000000000000..95fb3e96bd1b --- /dev/null +++ b/pkgs/by-name/cp/cpond/package.nix @@ -0,0 +1,45 @@ +{ + lib, + stdenv, + fetchFromGitHub, + ncurses, +}: +stdenv.mkDerivation { + pname = "cpond"; + version = "0-unstable-2025-11-23"; + + __structuredAttrs = true; + strictDeps = true; + + src = fetchFromGitHub { + owner = "ayuzur"; + repo = "cpond"; + rev = "b6d2827c73080b144ff07a70ec61757baff6a73b"; + hash = "sha256-feRGJ2CIa82eEiGG65WwFlh6dhhIvhW70FJMObWvi1Q="; + }; + + buildInputs = [ ncurses ]; + + postPatch = '' + substituteInPlace Makefile \ + --replace-fail '$(eflags)$(ncursesw_macros)' '$(eflags) $(ncursesw_macros)' + '' + + lib.optionalString stdenv.isDarwin '' + substituteInPlace Makefile \ + --replace-fail '-lncursesw' '-lncurses' + ''; + + installPhase = '' + mkdir -p $out/bin + cp cpond $out/bin/ + ''; + + meta = { + homepage = "https://github.com/ayuzur/cpond"; + description = "Procedurally animated fish for your terminal"; + license = lib.licenses.mit; + mainProgram = "cpond"; + maintainers = with lib.maintainers; [ yarn ]; + platforms = lib.platforms.unix; + }; +}