radamsa: 0.6 -> 0.7

emaryn 74dfd23b f2acf15f

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