nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, rustPlatform, fetchCrate, pkg-config, openssl, stdenv, Security }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "panamax";
5 version = "1.0.3";
6
7 src = fetchCrate {
8 inherit pname version;
9 sha256 = "sha256-w4waFdzd/Ps0whOp39QLBE/YF2eyc4t2Ili7FskUt1M=";
10 };
11
12 cargoSha256 = "sha256-52snmkTFHI26xJo9qJkmqh1M5lLzhDxw8WT6uFd57aw=";
13
14 nativeBuildInputs = [ pkg-config ];
15
16 buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
17
18 meta = with lib; {
19 description = "Mirror rustup and crates.io repositories for offline Rust and cargo usage";
20 homepage = "https://github.com/panamax-rs/panamax";
21 license = with licenses; [ mit /* or */ asl20 ];
22 maintainers = with maintainers; [ figsoda ];
23 };
24}