summary refs log tree commit diff
path: root/pkgs/tools/networking/ipcalc
diff options
context:
space:
mode:
authorMarius Bakke <m.bakke@warwick.ac.uk>2015-02-05 15:46:50 +0000
committerMarius Bakke <m.bakke@warwick.ac.uk>2015-06-20 10:24:19 +0100
commitaef2a813a80fb332f956b12ae8090239f1f7a8f5 (patch)
treeb861c43a876dd158cbc856cce032f5f0fc61002b /pkgs/tools/networking/ipcalc
parentc0d4cdce07f0676a319e83c7aeb3e8a9059700c9 (diff)
downloadnixpkgs-aef2a813a80fb332f956b12ae8090239f1f7a8f5.tar
nixpkgs-aef2a813a80fb332f956b12ae8090239f1f7a8f5.tar.gz
nixpkgs-aef2a813a80fb332f956b12ae8090239f1f7a8f5.tar.bz2
nixpkgs-aef2a813a80fb332f956b12ae8090239f1f7a8f5.tar.lz
nixpkgs-aef2a813a80fb332f956b12ae8090239f1f7a8f5.tar.xz
nixpkgs-aef2a813a80fb332f956b12ae8090239f1f7a8f5.tar.zst
nixpkgs-aef2a813a80fb332f956b12ae8090239f1f7a8f5.zip
add ipcalc
Diffstat (limited to 'pkgs/tools/networking/ipcalc')
-rw-r--r--pkgs/tools/networking/ipcalc/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/tools/networking/ipcalc/default.nix b/pkgs/tools/networking/ipcalc/default.nix
new file mode 100644
index 00000000000..10b1e93bde2
--- /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;
+  };
+}