Merge pull request #138845 from figsoda/panamax

This commit is contained in:
Sandro 2021-09-22 00:25:59 +02:00 committed by GitHub
commit 1fc22ce793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{ lib, rustPlatform, fetchCrate, pkg-config, openssl, stdenv, Security }:
rustPlatform.buildRustPackage rec {
pname = "panamax";
version = "1.0.3";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-w4waFdzd/Ps0whOp39QLBE/YF2eyc4t2Ili7FskUt1M=";
};
cargoSha256 = "sha256-52snmkTFHI26xJo9qJkmqh1M5lLzhDxw8WT6uFd57aw=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
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 ];
};
}

View File

@ -12506,6 +12506,9 @@ with pkgs;
maturin = callPackage ../development/tools/rust/maturin {
inherit (darwin.apple_sdk.frameworks) Security;
};
panamax = callPackage ../development/tools/rust/panamax {
inherit (darwin.apple_sdk.frameworks) Security;
};
inherit (rustPackages) rls;
rustfmt = rustPackages.rustfmt;