12 rustPlatform.buildRustPackage rec {
13 pname = "cargo-binstall";
16 src = fetchFromGitHub {
18 repo = "cargo-binstall";
20 hash = "sha256-xG2eLKqGv+wqpSGBUMoYGSQ22lrMHDpQzrSyxyHMHoc=";
23 cargoHash = "sha256-xNTSvJZWX19kmaFoLLHNKIrcsTFYWwN+7Ubym0hCwTA=";
33 ] ++ lib.optionals stdenv.isDarwin [
34 darwin.apple_sdk.frameworks.SystemConfiguration
37 buildNoDefaultFeatures = true;
47 cargoBuildFlags = [ "-p" "cargo-binstall" ];
48 cargoTestFlags = [ "-p" "cargo-binstall" ];
51 # requires internet access
52 "--skip=download::test::test_and_extract"
53 "--skip=gh_api_client::test::test_gh_api_client_cargo_binstall_no_such_release"
54 "--skip=gh_api_client::test::test_gh_api_client_cargo_binstall_v0_20_1"
58 description = "A tool for installing rust binaries as an alternative to building from source";
59 mainProgram = "cargo-binstall";
60 homepage = "https://github.com/cargo-bins/cargo-binstall";
61 changelog = "https://github.com/cargo-bins/cargo-binstall/releases/tag/v${version}";
62 license = licenses.gpl3Only;
63 maintainers = with maintainers; [ figsoda ];