Files
nixpkgs/pkgs/by-name/ca/cargo-dist/package.nix
Michael Daniels 1d0bb7b61b treewide: drop figsoda as maintainer (part 3)
s/^\s*figsoda\s*$//
2025-11-02 20:16:11 -05:00

68 lines
1.3 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
pkg-config,
bzip2,
xz,
zstd,
git,
rustup,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-dist";
version = "0.30.1";
src = fetchFromGitHub {
owner = "axodotdev";
repo = "cargo-dist";
rev = "v${version}";
hash = "sha256-kYmrV8GdtACtWPB3DckCriMqKeCn0Kz7HBDvXd9kr40=";
};
cargoHash = "sha256-SShnaCaaB/mgQn8PtttXtvUjdPfrYRopvjl0uGJbvzE=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
bzip2
xz
zstd
];
nativeCheckInputs = [
git
rustup
];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
# remove tests that require internet access
postPatch = ''
rm cargo-dist/tests/cli-tests.rs cargo-dist/tests/integration-tests.rs
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Tool for building final distributable artifacts and uploading them to an archive";
mainProgram = "dist";
homepage = "https://github.com/axodotdev/cargo-dist";
changelog = "https://github.com/axodotdev/cargo-dist/blob/${src.rev}/CHANGELOG.md";
license = with licenses; [
asl20
mit
];
maintainers = with maintainers; [
matthiasbeyer
mistydemeo
];
};
}