2023-01-24 15:26:00 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
, pkg-config
|
|
|
|
, libgit2
|
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
2021-09-21 21:03:41 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "panamax";
|
2023-02-04 20:44:50 +00:00
|
|
|
version = "1.0.12";
|
2021-09-21 21:03:41 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-02-04 20:44:50 +00:00
|
|
|
sha256 = "sha256-nHAsKvNEhGDVrLx8K7xnm7TuCxaZcYwlQ6xjVRvDdSk=";
|
2021-09-21 21:03:41 +00:00
|
|
|
};
|
|
|
|
|
2023-02-04 20:44:50 +00:00
|
|
|
cargoSha256 = "sha256-ydZ0KM/g9k0ux7Zr4crlxnKCC9N/qPzn1wmzbTIyz7o=";
|
2021-09-21 21:03:41 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2023-01-24 15:26:00 +00:00
|
|
|
buildInputs = [
|
|
|
|
libgit2
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
2021-09-21 21:03:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Mirror rustup and crates.io repositories for offline Rust and cargo usage";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "panamax";
|
2021-09-21 21:03:41 +00:00
|
|
|
homepage = "https://github.com/panamax-rs/panamax";
|
|
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|