mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 06:23:36 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, fetchFromGitLab, bash }:
|
|
|
|
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
|
|
stdenv.mkDerivation rec {
|
|
pname = "radamsa";
|
|
version = "0.6";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "akihe";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0mi1mwvfnlpblrbmp0rcyf5p74m771z6nrbsly6cajyn4mlpmbaq";
|
|
};
|
|
|
|
patchPhase = ''
|
|
substituteInPlace ./tests/bd.sh \
|
|
--replace "/bin/echo" echo
|
|
|
|
ln -s ${owl} ol.c.gz
|
|
|
|
patchShebangs tests
|
|
'';
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" "BINDIR=" ];
|
|
|
|
nativeCheckInputs = [ bash ];
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "General purpose fuzzer";
|
|
mainProgram = "radamsa";
|
|
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://gitlab.com/akihe/radamsa";
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|