410b979fe2
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
42 lines
928 B
Nix
42 lines
928 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, bzip2
|
|
, stdenv
|
|
, rustup
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-dist";
|
|
version = "0.0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "axodotdev";
|
|
repo = "cargo-dist";
|
|
rev = "v${version}";
|
|
hash = "sha256-AbEreN8pv/aZoBX1amoihb6HxWRdMuEX0waBlbvueQw=";
|
|
};
|
|
|
|
cargoHash = "sha256-U2pTvTk6oc6PV4W4XBKLzsaqSTb7Oqyw2Ponc9H0xs8=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
bzip2
|
|
];
|
|
|
|
nativeCheckInputs = lib.optionals stdenv.isDarwin [
|
|
rustup
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A tool for building final distributable artifacts and uploading them to an archive";
|
|
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; [ figsoda ];
|
|
};
|
|
}
|