mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
commit
7e2688a0bb
1 changed files with 42 additions and 0 deletions
42
pkgs/by-name/ip/ipam/package.nix
Normal file
42
pkgs/by-name/ip/ipam/package.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitea
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "ipam";
|
||||
version = "0.3.0-1";
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
owner = "lauralani";
|
||||
repo = "ipam";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-6gOkBjXgaMMWFRXFTSBY9YaNPdMRyLl8wy7BT/5vHio=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
vendorHash = "sha256-l8eeeYv41yUPQ1dyJY4Jo3uvULrc1B/buGlMxYSdhCA=";
|
||||
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd ipam \
|
||||
--bash <($out/bin/ipam completion bash) \
|
||||
--fish <($out/bin/ipam completion fish) \
|
||||
--zsh <($out/bin/ipam completion zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A cli based IPAM written in Go with PowerDNS support";
|
||||
homepage = "https://ipam.lauka.net/";
|
||||
changelog = "https://codeberg.org/lauralani/ipam/releases/tag/v${version}";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ janik ];
|
||||
mainProgram = "ipam";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue