summary refs log tree commit diff
path: root/pkgs/tools/networking/netcat-openbsd/default.nix
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2013-10-17 14:14:46 +0200
committerEvgeny Egorochkin <phreedom@yandex.ru>2013-10-24 10:57:33 +0300
commit427798268c57dac4ee0938abeac996bf310b8e93 (patch)
tree97575cdbd87bde433089ca52adcd5c4e2bdbf2b9 /pkgs/tools/networking/netcat-openbsd/default.nix
parent49e73ea117231a5b54fc796e29082bbc83cd4522 (diff)
Add netcat-openbsd, TCP/IP swiss army knife, openbsd variant
Diffstat (limited to 'pkgs/tools/networking/netcat-openbsd/default.nix')
-rw-r--r--pkgs/tools/networking/netcat-openbsd/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/networking/netcat-openbsd/default.nix b/pkgs/tools/networking/netcat-openbsd/default.nix
new file mode 100644
index 0000000000000..c7bbf3892d299
--- /dev/null
+++ b/pkgs/tools/networking/netcat-openbsd/default.nix
@@ -0,0 +1,32 @@
+{stdenv, fetchurl, pkgconfig, libbsd}:
+
+stdenv.mkDerivation rec {
+  name = "netcat-openbsd-1.105";
+  version = "1.105";
+
+  srcs = [
+    (fetchurl {
+      url = "mirror://debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.105.orig.tar.gz";
+      md5 = "7e67b22f1ad41a1b7effbb59ff28fca1";
+    })
+    (fetchurl {
+      url = "mirror://debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.105-7.debian.tar.gz";
+      md5 = "e914f8eb7eda5c75c679dd77787ac76b";
+    })
+  ];
+
+  buildInputs = [ pkgconfig libbsd ];
+  sourceRoot = name;
+  patches = [ "../debian/patches/*.patch" ];
+
+  installPhase = ''
+    install -Dm0755 nc $out/bin/nc
+  '';
+
+  meta = {
+    homepage = "http://packages.debian.org/netcat-openbsd";
+    description = "TCP/IP swiss army knife. OpenBSD variant.";
+    platforms = stdenv.lib.platforms.linux;
+  };
+
+}