about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarkus Wotringer <markus@wotringer.de>2015-11-28 23:51:17 +0100
committerMarkus Wotringer <markus@wotringer.de>2015-11-28 23:51:17 +0100
commitcb58cf57d6173da57df9ccd87b09180512889cf1 (patch)
treee84abf9efbcc9625e1e570783ba77f5b6a67e2a1
parentfcc876c3f5c54f5e4207bcc9319f4772b21206a8 (diff)
radamsa: init at 0.4
-rw-r--r--lib/maintainers.nix1
-rw-r--r--pkgs/tools/security/radamsa/default.nix27
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 30 insertions, 0 deletions
diff --git a/lib/maintainers.nix b/lib/maintainers.nix
index e7931b928b3cc..05d5178478202 100644
--- a/lib/maintainers.nix
+++ b/lib/maintainers.nix
@@ -182,6 +182,7 @@
   malyn = "Michael Alyn Miller <malyn@strangeGizmo.com>";
   manveru = "Michael Fellinger <m.fellinger@gmail.com>";
   marcweber = "Marc Weber <marco-oweber@gmx.de>";
+  markWot = "Markus Wotringer <markus@wotringer.de";
   maurer = "Matthew Maurer <matthew.r.maurer+nix@gmail.com>";
   matejc = "Matej Cotman <cotman.matej@gmail.com>";
   mathnerd314 = "Mathnerd314 <mathnerd314.gph+hs@gmail.com>";
diff --git a/pkgs/tools/security/radamsa/default.nix b/pkgs/tools/security/radamsa/default.nix
new file mode 100644
index 0000000000000..4a770f86e5cb2
--- /dev/null
+++ b/pkgs/tools/security/radamsa/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "radamsa-${version}";
+  version = "0.4";
+
+  src = fetchurl {
+    url = "http://haltp.org/download/${name}.tar.gz";
+    sha256 = "1xs9dsrq6qrf104yi9x21scpr73crfikbi8q9njimiw5c1y6alrv";
+  };
+
+  patchPhase = ''
+    substituteInPlace ./tests/bd.sh  \
+      --replace "/bin/echo" echo
+    substituteInPlace ./Makefile \
+      --replace "PREFIX=/usr" "PREFIX=$out" \
+      --replace "BINDIR=/bin" "BINDIR="
+  '';
+  
+  meta = {
+    description = "A general purpose fuzzer";
+    longDescription = "Radamsa is a general purpose data fuzzer. It reads data from given sample files, or standard input if none are given, and outputs modified data. It is usually used to generate malformed data for testing programs.";
+    homepage = http://github.com/aoh/radamsa;
+    maintainers = [ stdenv.lib.maintainers.markWot ];
+    platforms = stdenv.lib.platforms.all;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index c7337e8a2713e..d2128b640e713 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2822,6 +2822,8 @@ let
 
   quilt = callPackage ../development/tools/quilt { };
 
+  radamsa = callPackage ../tools/security/radamsa { };
+
   radvd = callPackage ../tools/networking/radvd { };
 
   ranger = callPackage ../applications/misc/ranger { };