wayland-bongocat: init at 1.2.1 (#429989)

This commit is contained in:
Aleksana
2025-08-01 21:53:03 +08:00
committed by GitHub
2 changed files with 63 additions and 0 deletions
+6
View File
@@ -26846,6 +26846,12 @@
githubId = 367185;
name = "Jan Votava";
};
voxi0 = {
name = "Wasiq Arbab";
email = "alif200099@gmail.com";
github = "Voxi0";
githubId = 113725768;
};
vpetersson = {
email = "vpetersson@screenly.io";
github = "vpetersson";
@@ -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;
};
})