Static build for samtools
Curses is not supported (it may be possible to support it)
This commit is contained in:
parent
967a5d7896
commit
4758873378
1 changed files with 8 additions and 1 deletions
|
@ -22,8 +22,15 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ zlib ncurses htslib ];
|
||||
|
||||
preConfigure = lib.optional stdenv.hostPlatform.isStatic ''
|
||||
export LIBS="-lz -lbz2 -llzma"
|
||||
'';
|
||||
makeFlags = lib.optional stdenv.hostPlatform.isStatic "AR=${stdenv.cc.targetPrefix}ar";
|
||||
|
||||
configureFlags = [ "--with-htslib=${htslib}" ]
|
||||
++ lib.optional (ncurses == null) "--without-curses";
|
||||
++ lib.optional (ncurses == null) "--without-curses"
|
||||
++ lib.optional stdenv.hostPlatform.isStatic ["--without-curses" ]
|
||||
;
|
||||
|
||||
preCheck = ''
|
||||
patchShebangs test/
|
||||
|
|
Loading…
Reference in a new issue