Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 51 lines 962 B view raw
1{ 2 buildGoModule, 3 fetchFromGitHub, 4 lib, 5 libglvnd, 6 pkg-config, 7 subPackages ? [ 8 "." 9 "netclient" 10 ], 11 xorg, 12}: 13 14buildGoModule rec { 15 pname = "netmaker"; 16 version = "1.0.0"; 17 18 src = fetchFromGitHub { 19 owner = "gravitl"; 20 repo = pname; 21 rev = "v${version}"; 22 hash = "sha256-CaN6sTD34hHAMwW90Ofe76me/vaO5rz7IlqQzEhgXQc="; 23 }; 24 25 vendorHash = "sha256-Eo+7L1LffJXzsBwTcOMry2ZWUHBepLOcLm4bmkNMmLY="; 26 27 inherit subPackages; 28 29 nativeBuildInputs = [ pkg-config ]; 30 31 buildInputs = [ 32 libglvnd 33 xorg.libX11 34 xorg.libXcursor 35 xorg.libXi 36 xorg.libXinerama 37 xorg.libXrandr 38 ]; 39 40 meta = { 41 description = "WireGuard automation from homelab to enterprise"; 42 homepage = "https://netmaker.io"; 43 changelog = "https://github.com/gravitl/netmaker/-/releases/v${version}"; 44 license = lib.licenses.asl20; 45 maintainers = with lib.maintainers; [ 46 urandom 47 qjoly 48 ]; 49 mainProgram = "netmaker"; 50 }; 51}