nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, rustPlatform, fetchCrate }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "cargo-binutils";
5 version = "0.3.3";
6
7 src = fetchCrate {
8 inherit pname version;
9 sha256 = "sha256-1sJ+vi78lZsYEQBDyUzifdiU47R1Z6Y8ejNI9h5U+Ao=";
10 };
11
12 cargoSha256 = "sha256-kZhxKwSEI24LNJ9lPPjtX5etE0XeqaVN7h3HTzpoAY0=";
13
14 meta = with lib; {
15 description = "Cargo subcommands to invoke the LLVM tools shipped with the Rust toolchain";
16 longDescription = ''
17 In order for this to work, you either need to run `rustup component add llvm-tools-preview` or install the `llvm-tools-preview` component using your Nix library (e.g. nixpkgs-mozilla, or rust-overlay)
18 '';
19 homepage = "https://github.com/rust-embedded/cargo-binutils";
20 changelog = "https://github.com/rust-embedded/cargo-binutils/blob/v${version}/CHANGELOG.md";
21 license = with licenses; [ asl20 mit ];
22 maintainers = with maintainers; [ stupremee ];
23 };
24}