mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 00:25:24 +00:00
cd251bfd11
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
26 lines
845 B
Nix
26 lines
845 B
Nix
{ lib, stdenv, rustPlatform, fetchFromGitHub, llvmPackages, linuxHeaders, sqlite, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "innernet";
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tonarino";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-OomCSA02ypFVzkYMcmkFREWB6x7oxgpt7x2zRANIDMw=";
|
|
};
|
|
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
|
|
|
nativeBuildInputs = with llvmPackages; [ llvm clang ];
|
|
buildInputs = [ sqlite ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
|
cargoSha256 = "sha256-GYNk3j8fjKSo3Qk6Qy0l6kNINK3FxlSYoEkJSx7kVpk=";
|
|
|
|
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 ];
|
|
};
|
|
}
|