wayland-bongocat: init at 1.2.1 (#429989)

authored by Aleksana and committed by GitHub 082f5163 12ca35e6

+63
+6
maintainers/maintainer-list.nix
··· 26846 26846 githubId = 367185; 26847 26847 name = "Jan Votava"; 26848 26848 }; 26849 + voxi0 = { 26850 + name = "Wasiq Arbab"; 26851 + email = "alif200099@gmail.com"; 26852 + github = "Voxi0"; 26853 + githubId = 113725768; 26854 + }; 26849 26855 vpetersson = { 26850 26856 email = "vpetersson@screenly.io"; 26851 26857 github = "vpetersson";
+57
pkgs/by-name/wa/wayland-bongocat/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + pkg-config, 6 + wayland, 7 + wayland-protocols, 8 + wayland-scanner, 9 + }: 10 + stdenv.mkDerivation (finalAttrs: { 11 + pname = "wayland-bongocat"; 12 + version = "1.2.1"; 13 + src = fetchFromGitHub { 14 + owner = "saatvik333"; 15 + repo = "wayland-bongocat"; 16 + tag = "v${finalAttrs.version}"; 17 + hash = "sha256-mtbw4UW5I2et2cVWrkCKWbG0p3tDGhgmHfH60OHvPkI="; 18 + }; 19 + 20 + # Package dependencies 21 + strictDeps = true; 22 + nativeBuildInputs = [ 23 + pkg-config 24 + wayland-scanner 25 + ]; 26 + buildInputs = [ 27 + wayland 28 + wayland-protocols 29 + ]; 30 + 31 + # Build phases 32 + # Ensure that the Makefile has the correct directory with the Wayland protocols 33 + preBuild = '' 34 + export WAYLAND_PROTOCOLS_DIR="${wayland-protocols}/share/wayland-protocols" 35 + ''; 36 + 37 + makeFlags = [ "release" ]; 38 + installPhase = '' 39 + runHook preInstall 40 + 41 + # Install binaries 42 + install -Dm755 build/bongocat $out/bin/${finalAttrs.meta.mainProgram} 43 + install -Dm755 scripts/find_input_devices.sh $out/bin/bongocat-find-devices 44 + 45 + runHook postInstall 46 + ''; 47 + 48 + # Package information 49 + meta = { 50 + description = "Delightful Wayland overlay that displays an animated bongo cat reacting to keyboard input"; 51 + homepage = "https://github.com/saatvik333/wayland-bongocat"; 52 + license = lib.licenses.mit; 53 + maintainers = with lib.maintainers; [ voxi0 ]; 54 + mainProgram = "bongocat"; 55 + platforms = lib.platforms.linux; 56 + }; 57 + })