git.iko.soy/typeable/nixpkgs
on master help sign in
samtools: refactoring
commit14feec44e4a31b4df7ce166e7d7dfef3c7f81e29 authormimadrid <mimadrid@ucm.es> dateFri 24 Jun 2016, 15:14 (10 years ago) parentd3da5cb
1 file changed+11−5
pkgs/applications/science/biology/samtools/default.nix+11−5
pkgs/applications/science/biology/samtools/default.nix+11−5
@@ -1,19 +1,25 @@
1−{ stdenv, fetchurl, zlib, ncurses }:
1+{ stdenv, fetchurl, zlib, htslib, ncurses ? null }:
22
33stdenv.mkDerivation rec {
4− name = "samtools-${version}";
4+ name = "${pname}-${version}";
5+ pname = "samtools";
56 version = "1.3.1";
67
78 src = fetchurl {
8− url = "https://github.com/samtools/samtools/releases/download/${version}/${name}.tar.bz2";
9+ url = "https://github.com/samtools/${pname}/releases/download/${version}/${name}.tar.bz2";
910 sha256 = "0znnnxc467jbf1as2dpskrjhfh8mbll760j6w6rdkwlwbqsp8gbc";
1011 };
1112
12− buildInputs = [ zlib ncurses ];
13+ buildInputs = [ zlib ncurses htslib ];
14+
15+ configureFlags = [ "--with-htslib=${htslib}" ]
16+ ++ stdenv.lib.optional (ncurses == null) "--without-curses";
1317
1418 meta = with stdenv.lib; {
15− description = "Tools (written in C using htslib) for manipulating next-generation sequencing data";
19+ description = "Tools for manipulating SAM/BAM/CRAM format";
1620 license = licenses.mit;
1721 homepage = http://www.htslib.org/;
22+ platforms = platforms.unix;
23+ maintainers = [ maintainers.mimadrid ];
1824 };
1925}