audiobookshelf: 2.18.1 -> 2.19.0 (#378967)
[NixPkgs.git] / pkgs / by-name / hi / hisat2 / package.nix
blob3feeb435579df9a9add94a0ab0b81a79d296c49c
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   unzip,
6   which,
7   python3,
8   perl,
9 }:
11 stdenv.mkDerivation rec {
12   pname = "hisat2";
13   version = "2.2.1";
15   src = fetchFromGitHub {
16     owner = "DaehwanKimLab";
17     repo = "hisat2";
18     rev = "v${version}";
19     sha256 = "0lmzdhzjkvxw7n5w40pbv5fgzd4cz0f9pxczswn3d4cr0k10k754";
20   };
22   nativeBuildInputs = [
23     unzip
24     which
25   ];
26   buildInputs = [
27     python3
28     perl
29   ];
31   installPhase = ''
32     mkdir -p $out/bin
33     cp hisat2 \
34        hisat2-inspect-l \
35        hisat2-build-s \
36        hisat2-align-l \
37        hisat2-inspect \
38        hisat2-align-s \
39        hisat2-inspect-s \
40        hisat2-build-l \
41        hisat2-build \
42        extract_exons.py \
43        extract_splice_sites.py \
44        hisat2_extract_exons.py \
45        hisat2_extract_snps_haplotypes_UCSC.py \
46        hisat2_extract_snps_haplotypes_VCF.py \
47        hisat2_extract_splice_sites.py \
48        hisat2_simulate_reads.py \
49        $out/bin
50   '';
52   meta = with lib; {
53     description = "Graph based aligner";
54     license = licenses.gpl3Plus;
55     homepage = "https://daehwankimlab.github.io/hisat2/";
56     maintainers = with maintainers; [ jbedo ];
57     platforms = [
58       "x86_64-linux"
59       "i686-linux"
60     ];
61   };