depot/third_party/nixpkgs/pkgs/tools/networking/innernet/default.nix
Default email 9405df4a82 Project import generated by Copybara.
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
2021-04-26 15:14:03 -04:00

25 lines
845 B
Nix

{ lib, stdenv, rustPlatform, fetchFromGitHub, llvmPackages, linuxHeaders, sqlite, Security }:
rustPlatform.buildRustPackage rec {
pname = "innernet";
version = "1.2.0";
src = fetchFromGitHub {
owner = "tonarino";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Z4F5RYPVgFiiDBg6lxILjAh/a/rL7IJBqHIJ/tQyLnE=";
};
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
nativeBuildInputs = with llvmPackages; [ llvm clang ];
buildInputs = [ sqlite ] ++ lib.optionals stdenv.isDarwin [ Security ];
cargoSha256 = "sha256-WSkN5aXMgfqZJAV1b3elF7kwf2f5OpcntKSf8620YcY=";
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 ];
};
}