nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 43 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 ninja, 7 gettext, 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "subnetcalc"; 12 version = "2.6.4"; 13 14 src = fetchFromGitHub { 15 owner = "dreibh"; 16 repo = "subnetcalc"; 17 tag = "subnetcalc-${finalAttrs.version}"; 18 hash = "sha256-FpDbU9kqen+NsJd8bSMUkTeq441+BXTKx/xKwcEBk10="; 19 }; 20 21 nativeBuildInputs = [ 22 cmake 23 ninja 24 gettext 25 ]; 26 27 meta = { 28 description = "SubNetCalc is an IPv4/IPv6 subnet address calculator"; 29 homepage = "https://www.uni-due.de/~be0001/subnetcalc/"; 30 license = lib.licenses.gpl3Plus; 31 longDescription = '' 32 SubNetCalc is an IPv4/IPv6 subnet address calculator. For given IPv4 or 33 IPv6 address and netmask or prefix length, it calculates network address, 34 broadcast address, maximum number of hosts and host address range. Also, 35 it prints the addresses in binary format for better understandability. 36 Furthermore, it prints useful information on specific address types (e.g. 37 type, scope, interface ID, etc.). 38 ''; 39 mainProgram = "subnetcalc"; 40 maintainers = with lib.maintainers; [ atila ]; 41 platforms = lib.platforms.unix; 42 }; 43})