nixpkgs-suyu/pkgs/applications/misc/kord/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1 KiB
Nix
Raw Permalink Normal View History

2023-01-16 13:21:19 +01:00
{ lib
2023-06-29 06:20:00 +02:00
, stdenv
, darwin
2023-01-16 13:21:19 +01:00
, fetchFromGitHub
, rustPlatform
, pkg-config
, alsa-lib
}:
rustPlatform.buildRustPackage rec {
pname = "kord";
2023-06-20 09:21:42 +02:00
version = "0.6.1";
2023-01-16 13:21:19 +01:00
# kord depends on nightly features
RUSTC_BOOTSTRAP = 1;
src = fetchFromGitHub {
owner = "twitchax";
repo = "kord";
rev = "v${version}";
2023-06-20 09:21:42 +02:00
sha256 = "sha256-CeMh6yB4fGoxtGLbkQe4OMMvBM0jesyP+8JtU5kCP84=";
2023-01-16 13:21:19 +01:00
};
2023-05-02 20:31:23 +02:00
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"bincode-2.0.0-rc.2" = "sha256-0BfKKGOi5EVIoF0HvIk0QS2fHUMG3tpsMLe2SkXeZlo=";
};
};
2023-01-16 13:21:19 +01:00
2023-06-29 06:20:00 +02:00
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ]
++ lib.optionals stdenv.isDarwin [ rustPlatform.bindgenHook ];
buildInputs = lib.optionals stdenv.isLinux [ alsa-lib ]
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AudioUnit ];
2023-01-16 13:21:19 +01:00
meta = with lib; {
description = "A music theory binary and library for Rust";
homepage = "https://github.com/twitchax/kord";
maintainers = with maintainers; [ kidsan ];
license = with licenses; [ mit ];
};
}