2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchFromGitLab, bash }:
|
2015-11-28 22:51:17 +00:00
|
|
|
|
2019-06-01 15:32:00 +01:00
|
|
|
let
|
|
|
|
# Fetch explicitly, otherwise build will try to do so
|
|
|
|
owl = fetchurl {
|
|
|
|
name = "ol.c.gz";
|
|
|
|
url = "https://gitlab.com/owl-lisp/owl/uploads/0d0730b500976348d1e66b4a1756cdc3/ol-0.1.19.c.gz";
|
|
|
|
sha256 = "0kdmzf60nbpvdn8j3l51i9lhcwfi4aw1zj4lhbp4adyg8n8pp4c6";
|
|
|
|
};
|
|
|
|
in
|
2015-11-28 22:51:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-06-01 15:32:00 +01:00
|
|
|
pname = "radamsa";
|
|
|
|
version = "0.6";
|
2015-11-28 22:51:17 +00:00
|
|
|
|
2019-06-01 15:32:00 +01:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "akihe";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0mi1mwvfnlpblrbmp0rcyf5p74m771z6nrbsly6cajyn4mlpmbaq";
|
2015-11-28 22:51:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace ./tests/bd.sh \
|
|
|
|
--replace "/bin/echo" echo
|
2019-06-01 15:32:00 +01:00
|
|
|
|
|
|
|
ln -s ${owl} ol.c.gz
|
|
|
|
|
|
|
|
patchShebangs tests
|
2015-11-28 22:51:17 +00:00
|
|
|
'';
|
2019-06-01 15:32:00 +01:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" "BINDIR=" ];
|
|
|
|
|
|
|
|
checkInputs = [ bash ];
|
|
|
|
doCheck = true;
|
2021-01-15 09:19:50 +00:00
|
|
|
|
2015-11-28 22:51:17 +00:00
|
|
|
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.";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://gitlab.com/akihe/radamsa";
|
2021-01-15 09:19:50 +00:00
|
|
|
maintainers = [ lib.maintainers.markWot ];
|
|
|
|
platforms = lib.platforms.all;
|
2015-11-28 22:51:17 +00:00
|
|
|
};
|
|
|
|
}
|