Files

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

44 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
cmake,
ninja,
gettext,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "subnetcalc";
version = "2.6.5";
src = fetchFromGitHub {
owner = "dreibh";
repo = "subnetcalc";
tag = "subnetcalc-${finalAttrs.version}";
hash = "sha256-Zv1qrox1Yg6qNg81QVXPZkB5lElaPICue+hc5muzI5Q=";
};
nativeBuildInputs = [
cmake
ninja
gettext
];
meta = {
description = "IPv4/IPv6 subnet address calculator";
homepage = "https://www.uni-due.de/~be0001/subnetcalc/";
license = lib.licenses.gpl3Plus;
longDescription = ''
SubNetCalc is an IPv4/IPv6 subnet address calculator. For given IPv4 or
IPv6 address and netmask or prefix length, it calculates network address,
broadcast address, maximum number of hosts and host address range. Also,
it prints the addresses in binary format for better understandability.
Furthermore, it prints useful information on specific address types (e.g.
type, scope, interface ID, etc.).
'';
mainProgram = "subnetcalc";
maintainers = with lib.maintainers; [ atila ];
platforms = lib.platforms.unix;
};
})