2025-07-28 20:21:10 +00:00

49 lines
1000 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
zlib,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-shuttle";
version = "0.56.6";
src = fetchFromGitHub {
owner = "shuttle-hq";
repo = "shuttle";
rev = "v${version}";
hash = "sha256-IBQExHPJUE16syyRkPOgh7jHONp1XDsAfCYLvZ6CLPs=";
};
cargoHash = "sha256-i6Xof5uzVOmdDFZw/J/x8eOqH/iAt2ZJXkOABLSR8Ss=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
zlib
];
cargoBuildFlags = [
"-p"
"cargo-shuttle"
];
cargoTestFlags = cargoBuildFlags ++ [
# other tests are failing for different reasons
"init::shuttle_init_tests::"
];
meta = with lib; {
description = "Cargo command for the shuttle platform";
mainProgram = "cargo-shuttle";
homepage = "https://shuttle.rs";
changelog = "https://github.com/shuttle-hq/shuttle/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ figsoda ];
};
}