diff options
author | Justin Bedo <cu@cua0.org> | 2020-06-27 15:32:06 +1000 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2020-06-27 15:32:06 +1000 |
commit | 21a643bc66c27a5fba8b9a0683a34160ca05acf2 (patch) | |
tree | bd137dfcb7dc4ed20515237e583f4c423591b24f | |
parent | 8a2778f8853ab687f83e07c4c322ab843b08f2af (diff) |
whisper: missing app expression
-rw-r--r-- | tools/whisper-app.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tools/whisper-app.nix b/tools/whisper-app.nix new file mode 100644 index 0000000..c3f6445 --- /dev/null +++ b/tools/whisper-app.nix @@ -0,0 +1,41 @@ +{ stdenv, fetchFromGitHub, fetchurl }: + +stdenv.mkDerivation { + pname = "whisper"; + version = "2.0"; + + src = fetchFromGitHub { + owner = "refresh-bio"; + repo = "Whisper"; + rev = "v2.0"; + sha256 = "100p2pqhli123wnqkxrvjcwnmlvcp1rk63whh121jannnw81rh2m"; + }; + + patches = [ (fetchurl { + url = "https://github.com/refresh-bio/Whisper/commit/9ad77e7de68d91d9427cfbe6211e83cea89206ab.patch"; + sha256 = "0i1s70rq5z4b3yik76vs1cxri4n3mpgfn91k35b3mwzhpxvfh7nn";}) ]; + + preConfigure = '' + cd src + + # disable default static linking + sed -i 's/ -static / /' makefile + ''; + + installPhase = '' + mkdir -p $out/bin + cp whisper whisper-index $out/bin + ''; + + buildPhase = "make -j $NIX_BUILD_CORES"; + + meta = with stdenv.lib; { + description = "Short read sequence mapper"; + license = licenses.gpl3; + homepage = "https://github.com/refresh-bio/whisper"; + maintainers = with maintainers; [ jbedo ]; + platforms = platforms.linux; + }; + +} + |