2024-11-10 21:39:09 +05:30
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
makeBinaryWrapper,
|
|
|
|
pkg-config,
|
|
|
|
alsa-lib,
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "piano-rs";
|
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ritiek";
|
2025-03-07 01:06:27 +01:00
|
|
|
repo = "piano-rs";
|
2025-04-08 02:51:45 -04:00
|
|
|
rev = "v${version}";
|
2024-11-10 21:39:09 +05:30
|
|
|
hash = "sha256-qZeH9xXQPIOJ87mvLahnJB3DuEgLX0EAXPvECgxNlq0=";
|
|
|
|
};
|
|
|
|
|
2025-01-23 08:45:31 +01:00
|
|
|
cargoHash = "sha256-ygRyYFLNBCLnRhmO6DoK8fwvy/Y9jrOjWChzxc3CRPo=";
|
2024-11-10 21:39:09 +05:30
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
makeBinaryWrapper
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out"/share/piano-rs
|
|
|
|
cp -r assets "$out"/share/piano-rs
|
|
|
|
wrapProgram "$out"/bin/piano-rs \
|
|
|
|
--set ASSETS "$out"/share/piano-rs/assets
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2025-06-05 09:11:29 -07:00
|
|
|
description = "Multiplayer piano using UDP sockets that can be played using computer keyboard, in the terminal";
|
2024-11-10 21:39:09 +05:30
|
|
|
homepage = "https://github.com/ritiek/piano-rs";
|
|
|
|
license = licenses.mit;
|
|
|
|
mainProgram = "piano-rs";
|
|
|
|
maintainers = with maintainers; [ ritiek ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|