10 rustPlatform.buildRustPackage rec {
14 # kord depends on nightly features
17 src = fetchFromGitHub {
21 sha256 = "sha256-CeMh6yB4fGoxtGLbkQe4OMMvBM0jesyP+8JtU5kCP84=";
25 lockFile = ./Cargo.lock;
27 "bincode-2.0.0-rc.2" = "sha256-0BfKKGOi5EVIoF0HvIk0QS2fHUMG3tpsMLe2SkXeZlo=";
31 nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ]
32 ++ lib.optionals stdenv.isDarwin [ rustPlatform.bindgenHook ];
34 buildInputs = lib.optionals stdenv.isLinux [ alsa-lib ]
35 ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AudioUnit ];
38 description = "A music theory binary and library for Rust";
39 homepage = "https://github.com/twitchax/kord";
40 maintainers = with maintainers; [ kidsan ];
41 license = with licenses; [ mit ];