13 rustPlatform.buildRustPackage rec {
17 sourceRoot = "${src.name}/myceliumd";
19 src = fetchFromGitHub {
20 owner = "threefoldtech";
23 hash = "sha256-PbEoM+AnZTuo9xtwcDcTH9FZAzPzfBhX41+zVVTdgRo=";
27 lockFile = ./Cargo.lock;
29 "tun-0.6.1" = "sha256-tJx/qRwPcZOAfxyjZUHKLKsLu+loltVUOCP8IzWMryM=";
33 nativeBuildInputs = [ versionCheckHook ];
34 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
35 darwin.apple_sdk.frameworks.Security
36 darwin.apple_sdk.frameworks.SystemConfiguration
39 doInstallCheck = true;
42 OPENSSL_NO_VENDOR = 1;
43 OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";
44 OPENSSL_DIR = "${lib.getDev openssl}";
48 updateScript = nix-update-script { };
50 inherit (nixosTests) mycelium;
55 description = "End-2-end encrypted IPv6 overlay network";
56 homepage = "https://github.com/threefoldtech/mycelium";
57 changelog = "https://github.com/threefoldtech/mycelium/blob/${src.rev}/CHANGELOG.md";
58 license = licenses.asl20;
59 maintainers = with maintainers; [
64 mainProgram = "mycelium";