nixpkgs/pkgs/applications/science/biology/samtools/default.nix

36 lines
880 B
Nix
Raw Normal View History

2017-09-30 18:44:48 +01:00
{ stdenv, fetchurl, zlib, htslib, perl, ncurses ? null }:
2016-04-12 20:13:40 +01:00
stdenv.mkDerivation rec {
2016-06-24 14:14:08 +01:00
name = "${pname}-${version}";
pname = "samtools";
samtools: 1.7 -> 1.8 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/samtools/versions. These checks were done: - built on NixOS - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/samtools --help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/samtools help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/blast2sam.pl -h’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/blast2sam.pl --help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/blast2sam.pl help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/novo2sam.pl help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/psl2sam.pl -h’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/psl2sam.pl --help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/psl2sam.pl help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/soap2sam.pl -h’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/soap2sam.pl --help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/soap2sam.pl help’ got 0 exit code - found 1.8 with grep in /nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8 - directory tree listing: https://gist.github.com/4673ea3645eb509035dcb386c4ad1da2
2018-04-10 21:04:09 +01:00
version = "1.8";
2016-04-12 20:13:40 +01:00
src = fetchurl {
2017-10-01 08:30:56 +01:00
url = "https://github.com/samtools/samtools/releases/download/${version}/${name}.tar.bz2";
samtools: 1.7 -> 1.8 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/samtools/versions. These checks were done: - built on NixOS - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/samtools --help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/samtools help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/blast2sam.pl -h’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/blast2sam.pl --help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/blast2sam.pl help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/novo2sam.pl help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/psl2sam.pl -h’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/psl2sam.pl --help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/psl2sam.pl help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/soap2sam.pl -h’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/soap2sam.pl --help’ got 0 exit code - ran ‘/nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8/bin/soap2sam.pl help’ got 0 exit code - found 1.8 with grep in /nix/store/ip1zr4rg4pwq8f3fs8ar570l0zdicai7-samtools-1.8 - directory tree listing: https://gist.github.com/4673ea3645eb509035dcb386c4ad1da2
2018-04-10 21:04:09 +01:00
sha256 = "05myg7bs90i68qbqab9cdg9rqj2xh39azibrx82ipzc5kcfvqhn9";
2016-04-12 20:13:40 +01:00
};
2017-10-01 08:30:56 +01:00
nativeBuildInputs = [ perl ];
2016-06-24 14:14:08 +01:00
2017-10-01 08:30:56 +01:00
buildInputs = [ zlib ncurses htslib ];
2017-09-30 18:44:48 +01:00
2016-06-24 14:14:08 +01:00
configureFlags = [ "--with-htslib=${htslib}" ]
++ stdenv.lib.optional (ncurses == null) "--without-curses";
2016-04-12 20:13:40 +01:00
2017-10-01 08:30:56 +01:00
preCheck = ''
patchShebangs test/
'';
2017-09-30 18:44:48 +01:00
enableParallelBuilding = true;
doCheck = true;
2016-04-12 20:13:40 +01:00
meta = with stdenv.lib; {
2016-06-24 14:14:08 +01:00
description = "Tools for manipulating SAM/BAM/CRAM format";
2016-04-12 20:13:40 +01:00
license = licenses.mit;
homepage = http://www.htslib.org/;
2016-06-24 14:14:08 +01:00
platforms = platforms.unix;
maintainers = [ maintainers.mimadrid ];
2016-04-12 20:13:40 +01:00
};
}