piano-rs: init at 0.2.0
This commit is contained in:
parent
c4c95cac81
commit
6977c6b6c4
@ -18228,6 +18228,16 @@
|
|||||||
{ fingerprint = "C0A7 A9BB 115B C857 4D75 EA99 BBB7 A680 1DF1 E03F"; }
|
{ fingerprint = "C0A7 A9BB 115B C857 4D75 EA99 BBB7 A680 1DF1 E03F"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
ritiek = {
|
||||||
|
name = "Ritiek Malhotra";
|
||||||
|
email = "ritiekmalhotra123@gmail.com";
|
||||||
|
matrix = "@ritiek:matrix.org";
|
||||||
|
github = "ritiek";
|
||||||
|
githubId = 20314742;
|
||||||
|
keys = [
|
||||||
|
{ fingerprint = "66FF 6099 7B04 845F F4C0 CB4F EB6F C9F9 FC96 4257"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
rixed = {
|
rixed = {
|
||||||
email = "rixed-github@happyleptic.org";
|
email = "rixed-github@happyleptic.org";
|
||||||
github = "rixed";
|
github = "rixed";
|
||||||
|
47
pkgs/by-name/pi/piano-rs/package.nix
Normal file
47
pkgs/by-name/pi/piano-rs/package.nix
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
rustPlatform,
|
||||||
|
fetchFromGitHub,
|
||||||
|
makeBinaryWrapper,
|
||||||
|
pkg-config,
|
||||||
|
alsa-lib,
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "piano-rs";
|
||||||
|
version = "0.2.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ritiek";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-qZeH9xXQPIOJ87mvLahnJB3DuEgLX0EAXPvECgxNlq0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-vDqfWXeQVEnMWMjhAG/A0afff7dWMoQejDZjcVlYBMQ=";
|
||||||
|
|
||||||
|
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; {
|
||||||
|
description = "A multiplayer piano using UDP sockets that can be played using computer keyboard, in the terminal";
|
||||||
|
homepage = "https://github.com/ritiek/piano-rs";
|
||||||
|
license = licenses.mit;
|
||||||
|
mainProgram = "piano-rs";
|
||||||
|
maintainers = with maintainers; [ ritiek ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user