9 stdenv.mkDerivation (finalAttrs: {
13 src = fetchFromGitHub {
16 rev = "refs/tags/v${finalAttrs.version}";
17 hash = "sha256-SWu2iRwNgdhsn4sH9/3jPNG3+l1xFAHXPq5/ODVd4WY=";
20 installFlags = [ "PREFIX=${placeholder "out"}" ];
23 simple = runCommand "${finalAttrs.pname}-test" { } ''
25 cp ${fastahack.src}/tests/* $out
26 grep -v ERROR <(${lib.getExe fastahack} $out/correct.fasta 2>&1)
27 grep -v ERROR <(${lib.getExe fastahack} $out/crlf.fasta 2>&1)
28 grep "ERROR: embedded newline " <(${lib.getExe fastahack} $out/embedded_newline.fasta 2>&1)
29 grep "ERROR: mismatched line lengths" <(${lib.getExe fastahack} $out/mismatched_lines.fasta 2>&1)
30 grep -v ERROR <(${lib.getExe fastahack} $out/trailing_newlines.fasta 2>&1)
35 description = "Utilities for indexing and sequence extraction from FASTA files";
36 homepage = "https://github.com/ekg/fastahack";
37 changelog = "https://github.com/ekg/fastahack/releases/tag/v${finalAttrs.version}";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ natsukium ];
40 mainProgram = "fastahack";
41 platforms = lib.platforms.unix;