nixpkgs/pkgs/by-name/ci/cidr-merger/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

27 lines
644 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "cidr-merger";
version = "1.1.3";
src = fetchFromGitHub {
owner = "zhanhb";
repo = "cidr-merger";
rev = "v${version}";
hash = "sha256-Kb+89VP7JhBrTE4MM3H/dqoIBgDLnVhKqkgHdymYCgk=";
};
vendorHash = "sha256-cPri384AX/FdfNtzt3xj4bF+/izSa4sZuAohK0R/7H4=";
meta = with lib; {
description = "Simple command line tool to merge ip/ip cidr/ip range, supports IPv4/IPv6";
mainProgram = "cidr-merger";
homepage = "https://github.com/zhanhb/cidr-merger";
license = licenses.mit;
maintainers = with maintainers; [ cyounkins ];
};
}