mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
mapcidr: modernize
This commit is contained in:
@@ -8,6 +8,8 @@ buildGoModule (finalAttrs: {
|
||||
pname = "mapcidr";
|
||||
version = "1.1.97";
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "projectdiscovery";
|
||||
repo = "mapcidr";
|
||||
@@ -18,10 +20,13 @@ buildGoModule (finalAttrs: {
|
||||
vendorHash = "sha256-4gzxKmnl8MOPcdzkwhReZ/cfbjfICY9kxousveoHYR0=";
|
||||
|
||||
modRoot = ".";
|
||||
|
||||
subPackages = [
|
||||
"cmd/mapcidr"
|
||||
];
|
||||
|
||||
ldflags = [ "-s" ];
|
||||
|
||||
meta = {
|
||||
description = "Small utility program to perform multiple operations for a given subnet/CIDR ranges";
|
||||
longDescription = ''
|
||||
@@ -29,7 +34,7 @@ buildGoModule (finalAttrs: {
|
||||
operations, it can be used both as a library and as independent CLI tool.
|
||||
'';
|
||||
homepage = "https://github.com/projectdiscovery/mapcidr";
|
||||
changelog = "https://github.com/projectdiscovery/mapcidr/releases/tag/v${finalAttrs.version}";
|
||||
changelog = "https://github.com/projectdiscovery/mapcidr/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ hanemile ];
|
||||
mainProgram = "mapcidr";
|
||||
|
||||
Reference in New Issue
Block a user