radamsa: 0.6 -> 0.7

emaryn 74dfd23b f2acf15f

+21 -7
+21 -7
pkgs/by-name/ra/radamsa/package.nix
··· 10 # Fetch explicitly, otherwise build will try to do so 11 owl = fetchurl { 12 name = "ol.c.gz"; 13 - url = "https://gitlab.com/owl-lisp/owl/uploads/0d0730b500976348d1e66b4a1756cdc3/ol-0.1.19.c.gz"; 14 - sha256 = "0kdmzf60nbpvdn8j3l51i9lhcwfi4aw1zj4lhbp4adyg8n8pp4c6"; 15 }; 16 in 17 stdenv.mkDerivation rec { 18 pname = "radamsa"; 19 - version = "0.6"; 20 21 src = fetchFromGitLab { 22 owner = "akihe"; 23 - repo = pname; 24 - rev = "v${version}"; 25 - sha256 = "0mi1mwvfnlpblrbmp0rcyf5p74m771z6nrbsly6cajyn4mlpmbaq"; 26 }; 27 28 patchPhase = '' 29 substituteInPlace ./tests/bd.sh \ 30 - --replace "/bin/echo" echo 31 32 ln -s ${owl} ol.c.gz 33 34 patchShebangs tests 35 ''; ··· 40 ]; 41 42 nativeCheckInputs = [ bash ]; 43 doCheck = true; 44 45 meta = { 46 description = "General purpose fuzzer"; 47 mainProgram = "radamsa"; 48 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."; 49 homepage = "https://gitlab.com/akihe/radamsa"; 50 maintainers = [ ]; 51 platforms = lib.platforms.all; 52 }; 53 }
··· 10 # Fetch explicitly, otherwise build will try to do so 11 owl = fetchurl { 12 name = "ol.c.gz"; 13 + url = "https://haltp.org/files/ol-0.2.2.c.gz"; 14 + hash = "sha256-/KhdrjaRAQhZjYpKJE33qMJxnngDrEbScHYuzkrvxVw="; 15 + }; 16 + hex = fetchFromGitLab { 17 + owner = "owl-lisp"; 18 + repo = "hex"; 19 + rev = "e95ebd38e4f7ef8e3d4e653f432e43ce0a804ca6"; 20 + hash = "sha256-OT04EGun8nKR6D55bMx8xj20dSFwxI7zP/8sdeFZAHQ="; 21 }; 22 in 23 stdenv.mkDerivation rec { 24 pname = "radamsa"; 25 + version = "0.7"; 26 27 src = fetchFromGitLab { 28 owner = "akihe"; 29 + repo = "radamsa"; 30 + tag = "v${version}"; 31 + hash = "sha256-cwTE+8mZujuVbm8vOpqGWCAYMwrWUXzLP7k3y7UoKtU="; 32 }; 33 34 patchPhase = '' 35 substituteInPlace ./tests/bd.sh \ 36 + --replace-fail "/bin/echo" echo 37 + substituteInPlace Makefile \ 38 + --replace-fail "cd lib && git clone https://gitlab.com/owl-lisp/hex.git" "" 39 40 ln -s ${owl} ol.c.gz 41 + mkdir lib 42 + ln -s ${hex} lib/hex 43 44 patchShebangs tests 45 ''; ··· 50 ]; 51 52 nativeCheckInputs = [ bash ]; 53 + 54 doCheck = true; 55 56 + __darwinAllowLocalNetworking = true; 57 + 58 meta = { 59 description = "General purpose fuzzer"; 60 mainProgram = "radamsa"; 61 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."; 62 homepage = "https://gitlab.com/akihe/radamsa"; 63 maintainers = [ ]; 64 + license = lib.licenses.mit; 65 platforms = lib.platforms.all; 66 }; 67 }