2021-01-15 10:19:50 +01:00
|
|
|
{lib, stdenv, fetchurl, perl}:
|
2015-02-05 16:46:50 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ipcalc";
|
2015-02-05 16:46:50 +01:00
|
|
|
version = "0.41";
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://jodies.de/ipcalc-archive/${pname}-${version}.tar.gz";
|
2015-02-05 16:46:50 +01:00
|
|
|
sha256 = "dda9c571ce3369e5b6b06e92790434b54bec1f2b03f1c9df054c0988aa4e2e8a";
|
|
|
|
};
|
|
|
|
buildInputs = [perl];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ipcalc $out/bin
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
description = "Simple IP network calculator";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://jodies.de/ipcalc";
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.all;
|
2015-02-05 16:46:50 +01:00
|
|
|
};
|
|
|
|
}
|