nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 buildGoModule, 5 fetchFromCodeberg, 6 installShellFiles, 7}: 8 9buildGoModule rec { 10 pname = "ipam"; 11 version = "0.3.0-1"; 12 13 src = fetchFromCodeberg { 14 owner = "lauralani"; 15 repo = "ipam"; 16 rev = "v${version}"; 17 hash = "sha256-6gOkBjXgaMMWFRXFTSBY9YaNPdMRyLl8wy7BT/5vHio="; 18 }; 19 20 nativeBuildInputs = [ 21 installShellFiles 22 ]; 23 24 vendorHash = "sha256-l8eeeYv41yUPQ1dyJY4Jo3uvULrc1B/buGlMxYSdhCA="; 25 26 ldflags = [ 27 "-s" 28 "-w" 29 ]; 30 31 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 32 installShellCompletion --cmd ipam \ 33 --bash <($out/bin/ipam completion bash) \ 34 --fish <($out/bin/ipam completion fish) \ 35 --zsh <($out/bin/ipam completion zsh) 36 ''; 37 38 meta = { 39 description = "Cli based IPAM written in Go with PowerDNS support"; 40 homepage = "https://ipam.lauka.net/"; 41 changelog = "https://codeberg.org/lauralani/ipam/releases/tag/v${version}"; 42 license = lib.licenses.gpl3Plus; 43 maintainers = [ ]; 44 mainProgram = "ipam"; 45 }; 46}