nixpkgs/pkgs/tools/text/cidrgrep/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
554 B
Nix
Raw Normal View History

2022-05-06 21:19:02 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule {
pname = "cidrgrep";
version = "unstable-2020-11-17";
src = fetchFromGitHub {
owner = "tomdoherty";
repo = "cidrgrep";
rev = "8ad5af533e8dc33ea18ff19b7c6a41550748fe0e";
2022-06-03 00:56:16 +00:00
hash = "sha256-Bp1cST6/8ppvpgNxjUpwL498C9vTJmoWOKLJgmWqfEs=";
2022-05-06 21:19:02 +00:00
};
vendorHash = null;
2022-05-06 21:19:02 +00:00
postInstall = ''
mv $out/bin/cmd $out/bin/cidrgrep
'';
meta = {
description = "Like grep but for IPv4 CIDRs";
license = lib.licenses.mit;
2022-06-03 00:56:16 +00:00
maintainers = with lib.maintainers; [ das_j ];
2022-05-06 21:19:02 +00:00
};
}