nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / by-name / ca / cargo-binstall / package.nix
blob8aee9dfb5642c2d51eab88562de532bc07c6ebeb
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   bzip2,
7   xz,
8   zstd,
9   stdenv,
10   darwin,
13 rustPlatform.buildRustPackage rec {
14   pname = "cargo-binstall";
15   version = "1.10.16";
17   src = fetchFromGitHub {
18     owner = "cargo-bins";
19     repo = "cargo-binstall";
20     rev = "v${version}";
21     hash = "sha256-a7EH6WvFJGzyFZ6qZEcMbo5JIsYhHWFMDB163g2Qges=";
22   };
24   cargoHash = "sha256-gpwC3mDJ+tAOTojFfOhKWjVUuHcKZm8kOPHPf71wRUI=";
26   nativeBuildInputs = [
27     pkg-config
28   ];
30   buildInputs =
31     [
32       bzip2
33       xz
34       zstd
35     ]
36     ++ lib.optionals stdenv.hostPlatform.isDarwin [
37       darwin.apple_sdk.frameworks.SystemConfiguration
38     ];
40   buildNoDefaultFeatures = true;
41   buildFeatures = [
42     "fancy-no-backtrace"
43     "git"
44     "pkg-config"
45     "rustls"
46     "trust-dns"
47     "zstd-thin"
48   ];
50   cargoBuildFlags = [
51     "-p"
52     "cargo-binstall"
53   ];
54   cargoTestFlags = [
55     "-p"
56     "cargo-binstall"
57   ];
59   checkFlags = [
60     # requires internet access
61     "--skip=download::test::test_and_extract"
62     "--skip=gh_api_client::test::test_gh_api_client_cargo_binstall_no_such_release"
63     "--skip=gh_api_client::test::test_gh_api_client_cargo_binstall_v0_20_1"
64   ];
66   meta = with lib; {
67     description = "Tool for installing rust binaries as an alternative to building from source";
68     mainProgram = "cargo-binstall";
69     homepage = "https://github.com/cargo-bins/cargo-binstall";
70     changelog = "https://github.com/cargo-bins/cargo-binstall/releases/tag/v${version}";
71     license = licenses.gpl3Only;
72     maintainers = with maintainers; [ figsoda ];
73   };