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.9";
12
13 src = fetchFromGitHub {
14 owner = "alopatindev";
15 repo = "cargo-limit";
16 rev = version;
17 sha256 = "sha256-GRitz9LOdZhbakbLZI2BUfZjqXLrsMK2MQJgixiEHaA=";
18 };
19
20 cargoSha256 = "sha256-uiANH9HOvy41FiABTTx2D9Rz1z/F7eITc5aiofaMSfI=";
21
22 buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
23
24 passthru = {
25 updateScript = nix-update-script {
26 attrPath = pname;
27 };
28 };
29
30 meta = with lib; {
31 description = "Cargo subcommand \"limit\": reduces the noise of compiler messages";
32 homepage = "https://github.com/alopatindev/cargo-limit";
33 license = with licenses; [ asl20 /* or */ mit ];
34 maintainers = with maintainers; [ otavio ];
35 };
36}