about summary refs log tree commit diff
path: root/pkgs/by-name/my/mycelium/package.nix
diff options
context:
space:
mode:
authormatthewcroughan <matt@croughan.sh>2024-02-15 04:57:46 +0000
committermatthewcroughan <matt@croughan.sh>2024-02-28 10:58:16 +0000
commitbd5bc4bcb6c6d1d0d50ddbb54196ad7abd60b202 (patch)
tree8d15a37c5e0f832fd28ae3d17b8b09e35da7d52b /pkgs/by-name/my/mycelium/package.nix
parentf893cc7daacb331292b4bb7788846329b5fe79da (diff)
downloadnixlib-bd5bc4bcb6c6d1d0d50ddbb54196ad7abd60b202.tar
nixlib-bd5bc4bcb6c6d1d0d50ddbb54196ad7abd60b202.tar.gz
nixlib-bd5bc4bcb6c6d1d0d50ddbb54196ad7abd60b202.tar.bz2
nixlib-bd5bc4bcb6c6d1d0d50ddbb54196ad7abd60b202.tar.lz
nixlib-bd5bc4bcb6c6d1d0d50ddbb54196ad7abd60b202.tar.xz
nixlib-bd5bc4bcb6c6d1d0d50ddbb54196ad7abd60b202.tar.zst
nixlib-bd5bc4bcb6c6d1d0d50ddbb54196ad7abd60b202.zip
mycelium: init at 0.4.2
Diffstat (limited to 'pkgs/by-name/my/mycelium/package.nix')
-rw-r--r--pkgs/by-name/my/mycelium/package.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/by-name/my/mycelium/package.nix b/pkgs/by-name/my/mycelium/package.nix
new file mode 100644
index 000000000000..d5b66705d15a
--- /dev/null
+++ b/pkgs/by-name/my/mycelium/package.nix
@@ -0,0 +1,39 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, stdenv
+, darwin
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "mycelium";
+  version = "0.4.2";
+
+  src = fetchFromGitHub {
+    owner = "threefoldtech";
+    repo = "mycelium";
+    rev = "v${version}";
+    hash = "sha256-VWrWg9UpBSug0cvY/zuzGFI6Y0CRFcrh1Cy4mbYtg9Q=";
+  };
+
+  cargoLock = {
+    lockFile = ./Cargo.lock;
+    outputHashes = {
+      "tun-0.6.1" = "sha256-DelNPCOWvVSMS2BNGA2Gw/Mn9c7RdFNR21/jo1xf+xk=";
+    };
+  };
+
+  buildInputs = lib.optionals stdenv.isDarwin [
+    darwin.apple_sdk.frameworks.Security
+    darwin.apple_sdk.frameworks.SystemConfiguration
+  ];
+
+  meta = with lib; {
+    description = "End-2-end encrypted IPv6 overlay network";
+    homepage = "https://github.com/threefoldtech/mycelium";
+    changelog = "https://github.com/threefoldtech/mycelium/blob/${src.rev}/CHANGELOG.md";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ matthewcroughan ];
+    mainProgram = "mycelium";
+  };
+}