diff options
author | Justin Bedo <cu@cua0.org> | 2021-12-14 12:42:47 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2021-12-14 13:30:23 +1100 |
commit | 6a1f4a51eb24fb6ce592e41a9b18586503e71ca6 (patch) | |
tree | d0799898fb7a21ffb9c530c26bca045602993f57 /pkgs/applications/science | |
parent | 69958994ab2c4c41f82db658ae6333b91079bcf6 (diff) |
subread: init 2.0.3
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r-- | pkgs/applications/science/biology/subread/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/science/biology/subread/default.nix b/pkgs/applications/science/biology/subread/default.nix new file mode 100644 index 0000000000000..431bd3788e7d1 --- /dev/null +++ b/pkgs/applications/science/biology/subread/default.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, fetchurl +, zlib +}: + +stdenv.mkDerivation rec { + pname = "subread"; + version = "2.0.3"; + + src = fetchurl { + url = "mirror://sourceforge/subread/subread-${version}/subread-${version}-source.tar.gz"; + sha256 = "sha256-Vs7zovkU1DJxMGnVwoL0iDHDoezIlDKtVYDKoyKl9Ws="; + }; + + buildInputs = [ + zlib + ]; + + configurePhase = '' + cd src + cp Makefile.${if stdenv.isLinux then "Linux" else "MacOS"} Makefile + ''; + + makeFlags = [ "CC_EXEC=cc" ]; + + installPhase = '' + mkdir $out + cp -r ../bin $out + ''; + + meta = with lib; { + description = "High-performance read alignment, quantification and mutation discovery"; + license = licenses.gpl3; + maintainers = with maintainers; [ jbedo ]; + platforms = [ "x86_64-darwin" "x86_64-linux" ]; + homepage = "http://subread.sourceforge.net/"; + }; + +} |