about summary refs log tree commit diff
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorJustin Bedő <cu@cua0.org>2021-12-15 13:46:45 +1100
committerGitHub <noreply@github.com>2021-12-15 13:46:45 +1100
commitf6e14b6ada8ea9e1bcec55d9cb716e9a86af0642 (patch)
tree643fc9fef34cd120c371d87b2607161004d65997 /pkgs/applications/science
parentef3a8a853b82db0908870a62ad91d03c36ca4331 (diff)
parent6a1f4a51eb24fb6ce592e41a9b18586503e71ca6 (diff)
Merge pull request #150628 from jbedo/subread
subread: init 2.0.3
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/biology/subread/default.nix40
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/";
+  };
+
+}