@@ -0,0 +1,34 @@
1+{ stdenv, fetchFromGitHub, fetchurl }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "whisper";
5+ version = "2.0.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "refresh-bio";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "0wpx1w1mar2d6zq2v14vy6nn896ds1n3zshxhhrrj5d528504iyw";
12+ };
13+
14+ preConfigure = ''
15+ cd src
16+
17+ # disable default static linking
18+ sed -i 's/ -static / /' makefile
19+ '';
20+
21+ installPhase = ''
22+ runHook preInstall
23+ install -Dt $out/bin whisper whisper-index
24+ runHook postInstall
25+ '';
26+
27+ meta = with stdenv.lib; {
28+ description = "Short read sequence mapper";
29+ license = licenses.gpl3;
30+ homepage = "https://github.com/refresh-bio/whisper";
31+ maintainers = with maintainers; [ jbedo ];
32+ platforms = platforms.x86_64;
33+ };
34+}