bowtie2: refactor

This commit is contained in:
natsukium 2023-10-20 17:06:09 +09:00
parent d06515a020
commit aae51697be
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -1,13 +1,21 @@
{ lib, stdenv, fetchFromGitHub, cmake, tbb, zlib, python3, perl }:
{ lib
, stdenv
, fetchFromGitHub
, cmake
, perl
, python3
, tbb
, zlib
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "bowtie2";
version = "2.5.2";
src = fetchFromGitHub {
owner = "BenLangmead";
repo = pname;
rev = "v${version}";
repo = "bowtie2";
rev = "refs/tags/v${finalAttrs.version}";
sha256 = "sha256-Bem4SHY/74suZPDbw/rwKMLBn3bRq5ooHbBoVnKuYk0=";
};
@ -17,10 +25,12 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "An ultrafast and memory-efficient tool for aligning sequencing reads to long reference sequences";
license = licenses.gpl3;
license = licenses.gpl3Plus;
homepage = "http://bowtie-bio.sf.net/bowtie2";
changelog = "https://github.com/BenLangmead/bowtie2/releases/tag/${finalAttrs.src.rev}";
maintainers = with maintainers; [ rybern ];
platforms = platforms.all;
broken = stdenv.isAarch64; # only x86 is supported
mainProgram = "bowtie2";
};
}
})