Merge pull request #243431 from natsukium/kssd/update

kssd: 1.1 -> 2.21; enable aarch64-linux support

authored by OTABI Tomoya and committed by GitHub 9b586ea6 83b84c79

+34 -15
+34 -15
pkgs/applications/science/biology/kssd/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchpatch, zlib, automake, autoconf, libtool }: 2 3 - stdenv.mkDerivation rec { 4 pname = "kssd"; 5 - version = "1.1"; 6 7 src = fetchFromGitHub { 8 owner = "yhg926"; 9 repo = "public_kssd"; 10 - rev = "v${version}"; 11 - sha256 = "sha256-8jzYqo9LXF66pQ1EIusm+gba2VbTYpJz2K3NVlA3QxY="; 12 }; 13 14 patches = [ 15 - # Pull upstream patch for -fno-common toolchain support: 16 - # https://github.com/yhg926/public_kssd/pull/9 17 (fetchpatch { 18 - name = "fno-common.patch"; 19 - url = "https://github.com/yhg926/public_kssd/commit/cdd1e8aae256146f5913a3b4c723b638d53bdf27.patch"; 20 - sha256 = "sha256-HhaTRqPfKR+ouh0PwEH6u22pbuqbX2OypRzw8BXm0W4="; 21 }) 22 ]; 23 24 - nativeBuildInputs = [ autoconf automake ]; 25 - buildInputs = [ zlib libtool ]; 26 27 installPhase = '' 28 - install -vD kssd $out/bin/kssd 29 ''; 30 31 meta = with lib; { 32 description = "K-mer substring space decomposition"; 33 license = licenses.asl20; 34 homepage = "https://github.com/yhg926/public_kssd"; 35 maintainers = with maintainers; [ unode ]; 36 - platforms = [ "x86_64-linux" ]; 37 }; 38 - }
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , zlib 6 + , kssd 7 + , runCommand 8 + }: 9 10 + stdenv.mkDerivation (finalAttrs: { 11 pname = "kssd"; 12 + version = "2.21"; 13 14 src = fetchFromGitHub { 15 owner = "yhg926"; 16 repo = "public_kssd"; 17 + rev = "v${finalAttrs.version}"; 18 + hash = "sha256-D/s1jL2oKE0rSdRMVljskYFsw5UPOv1L95Of+K+e17w="; 19 }; 20 21 patches = [ 22 + # https://github.com/yhg926/public_kssd/pull/11 23 (fetchpatch { 24 + name = "allocate-enough-memory.patch"; 25 + url = "https://github.com/yhg926/public_kssd/commit/b1e66bbcc04687bc3201301cd742a0b26a87cb5d.patch"; 26 + hash = "sha256-yFyJetpsGKeu+H6Oxrmn5ea4ESVtblb3YJDja4JEAEM="; 27 }) 28 ]; 29 30 + buildInputs = [ zlib ]; 31 32 installPhase = '' 33 + runHook preInstall 34 + 35 + install -vD kssd $out/bin/kssd 36 + 37 + runHook postInstall 38 ''; 39 40 + passthru.tests = { 41 + simple = runCommand "${finalAttrs.pname}-test" { } '' 42 + mkdir $out 43 + ${lib.getExe kssd} dist -L ${kssd.src}/shuf_file/L3K10.shuf -r ${kssd.src}/test_fna/seqs1 -o $out/reference 44 + ${lib.getExe kssd} dist -L ${kssd.src}/shuf_file/L3K10.shuf -o $out/query ${kssd.src}/test_fna/seqs2 45 + ${lib.getExe kssd} dist -r $out/reference -o $out/distout $out/query 46 + ''; 47 + }; 48 + 49 meta = with lib; { 50 description = "K-mer substring space decomposition"; 51 license = licenses.asl20; 52 homepage = "https://github.com/yhg926/public_kssd"; 53 maintainers = with maintainers; [ unode ]; 54 + platforms = platforms.linux; 55 + mainProgram = "kssd"; 56 }; 57 + })