nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, rustPlatform
3, fetchFromGitHub
4, nix-update-script
5, stdenv
6, libiconv
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "cargo-limit";
11 version = "0.0.10";
12
13 src = fetchFromGitHub {
14 owner = "alopatindev";
15 repo = "cargo-limit";
16 rev = version;
17 sha256 = "sha256-joWDB9fhCsYVZFZdr+Gfm4JaRlm5kj+CHp34Sx5iQYk=";
18 };
19
20 cargoSha256 = "sha256-dwqbG0UFeUQHa0K98ebHfjbcQuQOhK2s6ZxAT6r0cik=";
21
22 buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
23
24 passthru = {
25 updateScript = nix-update-script { };
26 };
27
28 meta = with lib; {
29 description = "Cargo subcommand \"limit\": reduces the noise of compiler messages";
30 homepage = "https://github.com/alopatindev/cargo-limit";
31 license = with licenses; [ asl20 /* or */ mit ];
32 maintainers = with maintainers; [ otavio ];
33 };
34}