aboutsummaryrefslogtreecommitdiff
path: root/pkgs/applications/networking/esniper
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2011-11-07 17:48:51 +0000
committerPeter Simons <simons@cryp.to>2011-11-07 17:48:51 +0000
commitdd8a7b38db7c87cee5e2cc7ca5c714c398c8887d (patch)
tree3977e12994e96aa87e78074c9371523b4faedb9b /pkgs/applications/networking/esniper
parentb8153a3ac513fbaf6820165bf71d924f0076591d (diff)
esniper: fixed build with current version of curl
svn path=/nixpkgs/trunk/; revision=30299
Diffstat (limited to 'pkgs/applications/networking/esniper')
-rw-r--r--pkgs/applications/networking/esniper/default.nix2
-rw-r--r--pkgs/applications/networking/esniper/fix-build-with-latest-curl.patch10
2 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/applications/networking/esniper/default.nix b/pkgs/applications/networking/esniper/default.nix
index 5aaf419d3897..4c153fa6ff5a 100644
--- a/pkgs/applications/networking/esniper/default.nix
+++ b/pkgs/applications/networking/esniper/default.nix
@@ -10,6 +10,8 @@ stdenv.mkDerivation {
buildInputs = [openssl curl];
+ patches = [ ./fix-build-with-latest-curl.patch ];
+
postInstall = ''
sed -e "2i export PATH=\"$out/bin:\$PATH\"" <"frontends/snipe" >"$out/bin/snipe"
chmod 555 "$out/bin/snipe"
diff --git a/pkgs/applications/networking/esniper/fix-build-with-latest-curl.patch b/pkgs/applications/networking/esniper/fix-build-with-latest-curl.patch
new file mode 100644
index 000000000000..81005fd3ebe5
--- /dev/null
+++ b/pkgs/applications/networking/esniper/fix-build-with-latest-curl.patch
@@ -0,0 +1,10 @@
+--- esniper-2-26-0/http.c 2011-08-09 21:05:59.000000000 +0200
++++ esniper/http.c 2011-08-10 00:24:43.000000000 +0200
+@@ -28,7 +28,6 @@
+ #include "esniper.h"
+ #include <ctype.h>
+ #include <curl/curl.h>
+-#include <curl/types.h>
+ #include <curl/easy.h>
+ #include <stdlib.h>
+ #include <string.h>