mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
openssl,
|
|
nixosTests,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "mycelium";
|
|
version = "0.7.10";
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/myceliumd";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "threefoldtech";
|
|
repo = "mycelium";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-lKhq0+mymon6Xu82CSF96Kys1XSOpV/J+nwVywnUur4=";
|
|
};
|
|
|
|
cargoHash = "sha256-heHR/iR5OUctvXh6HUpfrJtoKeziY6bqT0vkXPOEjIU=";
|
|
|
|
nativeBuildInputs = [ versionCheckHook ];
|
|
|
|
doInstallCheck = true;
|
|
|
|
env = {
|
|
OPENSSL_NO_VENDOR = 1;
|
|
OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";
|
|
OPENSSL_DIR = "${lib.getDev openssl}";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests = {
|
|
inherit (nixosTests) mycelium;
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "End-2-end encrypted IPv6 overlay network";
|
|
homepage = "https://github.com/threefoldtech/mycelium";
|
|
changelog = "https://github.com/threefoldtech/mycelium/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
flokli
|
|
matthewcroughan
|
|
rvdp
|
|
];
|
|
mainProgram = "mycelium";
|
|
};
|
|
})
|