piano-rs: init at 0.2.0 (#336405)

authored by scrumplex.net and committed by GitHub 15931153 a67e90c4

+57
+10
maintainers/maintainer-list.nix
··· 18613 18613 { fingerprint = "C0A7 A9BB 115B C857 4D75 EA99 BBB7 A680 1DF1 E03F"; } 18614 18614 ]; 18615 18615 }; 18616 + ritiek = { 18617 + name = "Ritiek Malhotra"; 18618 + email = "ritiekmalhotra123@gmail.com"; 18619 + matrix = "@ritiek:matrix.org"; 18620 + github = "ritiek"; 18621 + githubId = 20314742; 18622 + keys = [ 18623 + { fingerprint = "66FF 6099 7B04 845F F4C0 CB4F EB6F C9F9 FC96 4257"; } 18624 + ]; 18625 + }; 18616 18626 rixed = { 18617 18627 email = "rixed-github@happyleptic.org"; 18618 18628 github = "rixed";
+47
pkgs/by-name/pi/piano-rs/package.nix
··· 1 + { 2 + lib, 3 + rustPlatform, 4 + fetchFromGitHub, 5 + makeBinaryWrapper, 6 + pkg-config, 7 + alsa-lib, 8 + }: 9 + 10 + rustPlatform.buildRustPackage rec { 11 + pname = "piano-rs"; 12 + version = "0.2.0"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "ritiek"; 16 + repo = pname; 17 + rev = "v${version}"; 18 + hash = "sha256-qZeH9xXQPIOJ87mvLahnJB3DuEgLX0EAXPvECgxNlq0="; 19 + }; 20 + 21 + cargoHash = "sha256-vDqfWXeQVEnMWMjhAG/A0afff7dWMoQejDZjcVlYBMQ="; 22 + 23 + nativeBuildInputs = [ 24 + makeBinaryWrapper 25 + pkg-config 26 + ]; 27 + 28 + buildInputs = [ 29 + alsa-lib 30 + ]; 31 + 32 + postInstall = '' 33 + mkdir -p "$out"/share/piano-rs 34 + cp -r assets "$out"/share/piano-rs 35 + wrapProgram "$out"/bin/piano-rs \ 36 + --set ASSETS "$out"/share/piano-rs/assets 37 + ''; 38 + 39 + meta = with lib; { 40 + description = "A multiplayer piano using UDP sockets that can be played using computer keyboard, in the terminal"; 41 + homepage = "https://github.com/ritiek/piano-rs"; 42 + license = licenses.mit; 43 + mainProgram = "piano-rs"; 44 + maintainers = with maintainers; [ ritiek ]; 45 + platforms = platforms.unix; 46 + }; 47 + }