diff --git a/pkgs/tools/networking/ipcalc/default.nix b/pkgs/tools/networking/ipcalc/default.nix new file mode 100644 index 000000000000..10b1e93bde29 --- /dev/null +++ b/pkgs/tools/networking/ipcalc/default.nix @@ -0,0 +1,20 @@ +{stdenv, fetchurl, perl}: +stdenv.mkDerivation rec { + name = "ipcalc-${version}"; + version = "0.41"; + src = fetchurl { + url = "http://jodies.de/ipcalc-archive/${name}.tar.gz"; + sha256 = "dda9c571ce3369e5b6b06e92790434b54bec1f2b03f1c9df054c0988aa4e2e8a"; + }; + buildInputs = [perl]; + installPhase = '' + mkdir -p $out/bin + cp ipcalc $out/bin + ''; + meta = { + description = "Simple IP network calculator"; + homepage = "http://jodies.de/ipcalc"; + license = stdenv.lib.licenses.gpl2Plus; + platforms = stdenv.lib.platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 02d984875c17..41335382e876 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1840,6 +1840,8 @@ let ipmiutil = callPackage ../tools/system/ipmiutil {}; + ipcalc = callPackage ../tools/networking/ipcalc {}; + ipv6calc = callPackage ../tools/networking/ipv6calc {}; ipxe = callPackage ../tools/misc/ipxe { };