nixpkgs/pkgs/development/tools/rust/panamax/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
827 B
Nix
Raw Normal View History

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