1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00
nixpkgs/pkgs/tools/security/radamsa/default.nix
Ryan Mulligan 5c7c6fd5eb radamsa: 0.4 -> 0.5
Semi-automatic update generated by https://github.com/ryantm/nix-update tools.

This update was made based on information from https://repology.org/metapackage/radamsa/versions.

These checks were done:

- built on NixOS
- ran `/nix/store/vjls4rpfr18a844phj56y6zkgjhkk44n-radamsa-0.5/bin/radamsa -h` got 0 exit code
- ran `/nix/store/vjls4rpfr18a844phj56y6zkgjhkk44n-radamsa-0.5/bin/radamsa --help` got 0 exit code
- ran `/nix/store/vjls4rpfr18a844phj56y6zkgjhkk44n-radamsa-0.5/bin/radamsa -V` and found version 0.5
- ran `/nix/store/vjls4rpfr18a844phj56y6zkgjhkk44n-radamsa-0.5/bin/radamsa --version` and found version 0.5
- found 0.5 with grep in /nix/store/vjls4rpfr18a844phj56y6zkgjhkk44n-radamsa-0.5
- directory tree listing: https://gist.github.com/fc1b475926e3a86b55b9d18567458bd4
2018-03-29 10:29:44 -07:00

28 lines
948 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "radamsa-${version}";
version = "0.5";
src = fetchurl {
url = "https://github.com/aoh/radamsa/releases/download/v${version}/${name}.tar.gz";
sha256 = "1d2chp45fbdb2v5zpsx6gh3bv8fhcjv0zijz10clcznadnm8c6p2";
};
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 = https://github.com/aoh/radamsa;
maintainers = [ stdenv.lib.maintainers.markWot ];
platforms = stdenv.lib.platforms.all;
};
}