wayland-bongocat: init at 1.2.1

This commit is contained in:
voxi0
2025-08-01 14:19:31 +01:00
parent b0ff330a9a
commit d51ae0f79a
2 changed files with 759 additions and 703 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,57 @@
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
wayland,
wayland-protocols,
wayland-scanner,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "wayland-bongocat";
version = "1.2.1";
src = fetchFromGitHub {
owner = "saatvik333";
repo = "wayland-bongocat";
tag = "v${finalAttrs.version}";
hash = "sha256-mtbw4UW5I2et2cVWrkCKWbG0p3tDGhgmHfH60OHvPkI=";
};
# Package dependencies
strictDeps = true;
nativeBuildInputs = [
pkg-config
wayland-scanner
];
buildInputs = [
wayland
wayland-protocols
];
# Build phases
# Ensure that the Makefile has the correct directory with the Wayland protocols
preBuild = ''
export WAYLAND_PROTOCOLS_DIR="${wayland-protocols}/share/wayland-protocols"
'';
makeFlags = [ "release" ];
installPhase = ''
runHook preInstall
# Install binaries
install -Dm755 build/bongocat $out/bin/${finalAttrs.meta.mainProgram}
install -Dm755 scripts/find_input_devices.sh $out/bin/bongocat-find-devices
runHook postInstall
'';
# Package information
meta = {
description = "Delightful Wayland overlay that displays an animated bongo cat reacting to keyboard input";
homepage = "https://github.com/saatvik333/wayland-bongocat";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ voxi0 ];
mainProgram = "bongocat";
platforms = lib.platforms.linux;
};
})