diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/science/biology/subread/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/science/biology/subread/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/science/biology/subread/default.nix b/nixpkgs/pkgs/applications/science/biology/subread/default.nix new file mode 100644 index 000000000000..62ea61af9192 --- /dev/null +++ b/nixpkgs/pkgs/applications/science/biology/subread/default.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, fetchurl +, zlib +}: + +stdenv.mkDerivation rec { + pname = "subread"; + version = "2.0.6"; + + src = fetchurl { + url = "mirror://sourceforge/subread/subread-${version}/subread-${version}-source.tar.gz"; + sha256 = "sha256-8P3aa5hjTSlGAolIwiAlPhCg8nx/pfJJE7ZbOsbLsEU="; + }; + + 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; { + broken = stdenv.isDarwin; + description = "High-performance read alignment, quantification and mutation discovery"; + license = licenses.gpl3; + maintainers = with maintainers; [ jbedo ]; + platforms = [ "x86_64-darwin" "x86_64-linux" ]; + homepage = "https://subread.sourceforge.net/"; + }; + +} |