mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
Diff: https://github.com/cargo-bins/cargo-binstall/compare/v1.18.1...v1.19.1 Changelog: https://github.com/cargo-bins/cargo-binstall/releases/tag/v1.19.1
73 lines
1.6 KiB
Nix
73 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
bzip2,
|
|
xz,
|
|
zstd,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "cargo-binstall";
|
|
version = "1.19.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cargo-bins";
|
|
repo = "cargo-binstall";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-b4S8oPK1U84Oy3hhJSxJxToaFF5l4V2Tea0kGn3hW0A=";
|
|
};
|
|
|
|
cargoHash = "sha256-E+exhtfJiOTQIZm44WyA0yptUn7wymXFRlDyAsshcKA=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
bzip2
|
|
xz
|
|
zstd
|
|
];
|
|
|
|
buildNoDefaultFeatures = true;
|
|
buildFeatures = [
|
|
"fancy-no-backtrace"
|
|
"git"
|
|
"pkg-config"
|
|
"rustls"
|
|
"trust-dns"
|
|
"zstd-thin"
|
|
];
|
|
|
|
cargoBuildFlags = [
|
|
"-p"
|
|
"cargo-binstall"
|
|
];
|
|
cargoTestFlags = [
|
|
"-p"
|
|
"cargo-binstall"
|
|
];
|
|
|
|
checkFlags = [
|
|
# requires internet access
|
|
"--skip=download::test::test_and_extract"
|
|
"--skip=gh_api_client::test::test_gh_api_client_cargo_binstall_no_such_release"
|
|
"--skip=gh_api_client::test::test_gh_api_client_cargo_binstall_v0_20_1"
|
|
];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
doInstallCheck = true;
|
|
versionCheckProgramArg = "-V";
|
|
|
|
meta = {
|
|
description = "Tool for installing rust binaries as an alternative to building from source";
|
|
mainProgram = "cargo-binstall";
|
|
homepage = "https://github.com/cargo-bins/cargo-binstall";
|
|
changelog = "https://github.com/cargo-bins/cargo-binstall/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ mdaniels5757 ];
|
|
};
|
|
})
|