blob: 771ca558c9d82eb29a46dce038843af4f8969b5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
lib,
stdenv,
autoreconfHook,
fetchFromGitHub,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "iprange";
version = "2.1.1";
src = fetchFromGitHub {
owner = "firehol";
repo = "iprange";
tag = "v${finalAttrs.version}";
hash = "sha256-vmGJaDwduieMhYpNy3sunrTARgRMz24h/jT/cGSh14Y=";
};
nativeBuildInputs = [ autoreconfHook ];
configureFlags = [ "--disable-man" ];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgramArg = [ "--version" ];
meta = {
description = "Manage IP ranges";
homepage = "https://github.com/firehol/iprange";
changelog = "https://github.com/firehol/iprange/releases/tag/v${finalAttrs.version}";
license = lib.licenses.gpl2Plus;
maintainers = [ ];
mainProgram = "iprange";
};
})
|