This repository has no description
1.0 kB
43 lines
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 stdenv,
6 darwin,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "mycelium";
11 version = "0.5.0";
12
13 src = fetchFromGitHub {
14 owner = "threefoldtech";
15 repo = "mycelium";
16 rev = "v${version}";
17 hash = "sha256-K82LHVXbSMIJQlQ/qUpdCBVlAEZWyMMG2eUt2FzNwRE=";
18 };
19
20 cargoLock = {
21 lockFile = ./Cargo.lock;
22 outputHashes = {
23 "tun-0.6.1" = "sha256-DelNPCOWvVSMS2BNGA2Gw/Mn9c7RdFNR21/jo1xf+xk=";
24 };
25 };
26
27 buildInputs = lib.optionals stdenv.isDarwin [
28 darwin.apple_sdk.frameworks.Security
29 darwin.apple_sdk.frameworks.SystemConfiguration
30 ];
31
32 meta = with lib; {
33 description = "End-2-end encrypted IPv6 overlay network";
34 homepage = "https://github.com/threefoldtech/mycelium";
35 changelog = "https://github.com/threefoldtech/mycelium/blob/${src.rev}/CHANGELOG.md";
36 license = licenses.asl20;
37 maintainers = with maintainers; [
38 flokli
39 matthewcroughan
40 ];
41 mainProgram = "mycelium";
42 };
43}