1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 14:47:06 +00:00
nixpkgs/pkgs/tools/networking/ipcalc/default.nix

21 lines
558 B
Nix
Raw Normal View History

2015-02-05 15:46:50 +00:00
{stdenv, fetchurl, perl}:
stdenv.mkDerivation rec {
pname = "ipcalc";
2015-02-05 15:46:50 +00:00
version = "0.41";
src = fetchurl {
url = "http://jodies.de/ipcalc-archive/${pname}-${version}.tar.gz";
2015-02-05 15:46:50 +00:00
sha256 = "dda9c571ce3369e5b6b06e92790434b54bec1f2b03f1c9df054c0988aa4e2e8a";
};
buildInputs = [perl];
installPhase = ''
mkdir -p $out/bin
cp ipcalc $out/bin
'';
meta = {
description = "Simple IP network calculator";
homepage = http://jodies.de/ipcalc;
2015-02-05 15:46:50 +00:00
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.all;
};
}