default.nix (749B)
1 { 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5 }: 6 7 buildGoModule rec { 8 pname = "ionscale"; 9 version = "0.16.0"; 10 11 src = fetchFromGitHub { 12 owner = "jsiebens"; 13 repo = "ionscale"; 14 rev = "v${version}"; 15 hash = "sha256-OXCxdXkBpbb6qQUGp70OOhi6Ydaw+EXlVTw8QsCjAGQ="; 16 }; 17 18 vendorHash = "sha256-UzxfIaZ2tbCt0g4WtH0gnSw8HGFI+07JOe4HUdPQmqs="; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 "-X github.com/jsiebens/ionscale/internal/version.Version=${version}" 24 ]; 25 26 doCheck = false; 27 28 meta = { 29 description = "A lightweight implementation of a Tailscale control server"; 30 homepage = "https://jsiebens.github.io/ionscale/"; 31 license = lib.licenses.bsd3; 32 maintainers = [ lib.maintainers.sikmir ]; 33 mainProgram = "ionscale"; 34 }; 35 }