base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / hi / hisat2 / package.nix
blob67c39031b773a234a08f632cfd03c030e8a89eb0
1 {lib, stdenv, fetchFromGitHub, unzip, which, python3, perl}:
3 stdenv.mkDerivation rec {
4   pname = "hisat2";
5   version = "2.2.1";
7   src = fetchFromGitHub {
8     owner = "DaehwanKimLab";
9     repo = "hisat2";
10     rev = "v${version}";
11     sha256 = "0lmzdhzjkvxw7n5w40pbv5fgzd4cz0f9pxczswn3d4cr0k10k754";
12   };
14   nativeBuildInputs = [ unzip which ];
15   buildInputs = [ python3 perl ];
17   installPhase = ''
18     mkdir -p $out/bin
19     cp hisat2 \
20        hisat2-inspect-l \
21        hisat2-build-s \
22        hisat2-align-l \
23        hisat2-inspect \
24        hisat2-align-s \
25        hisat2-inspect-s \
26        hisat2-build-l \
27        hisat2-build \
28        extract_exons.py \
29        extract_splice_sites.py \
30        hisat2_extract_exons.py \
31        hisat2_extract_snps_haplotypes_UCSC.py \
32        hisat2_extract_snps_haplotypes_VCF.py \
33        hisat2_extract_splice_sites.py \
34        hisat2_simulate_reads.py \
35        $out/bin
36   '';
38   meta = with lib; {
39     description = "Graph based aligner";
40     license = licenses.gpl3Plus;
41     homepage = "https://daehwankimlab.github.io/hisat2/";
42     maintainers = with maintainers; [ jbedo ];
43     platforms = [ "x86_64-linux" "i686-linux" ];
44   };