2021-04-19 02:33:03 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, llvmPackages, linuxHeaders, sqlite, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "innernet";
|
2021-04-26 01:46:24 +00:00
|
|
|
version = "1.2.0";
|
2021-04-19 02:33:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tonarino";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-26 01:46:24 +00:00
|
|
|
sha256 = "sha256-Z4F5RYPVgFiiDBg6lxILjAh/a/rL7IJBqHIJ/tQyLnE=";
|
2021-04-19 02:33:03 +00:00
|
|
|
};
|
|
|
|
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
|
|
|
|
|
|
|
nativeBuildInputs = with llvmPackages; [ llvm clang ];
|
|
|
|
buildInputs = [ sqlite ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
2021-04-26 01:46:24 +00:00
|
|
|
cargoSha256 = "sha256-WSkN5aXMgfqZJAV1b3elF7kwf2f5OpcntKSf8620YcY=";
|
2021-04-19 02:33:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A private network system that uses WireGuard under the hood";
|
|
|
|
homepage = "https://github.com/tonarino/innernet";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tomberek _0x4A6F ];
|
|
|
|
};
|
|
|
|
}
|