Static build for samtools

Curses is not supported (it may be possible to support it)
This commit is contained in:
Luis Pedro Coelho 2022-05-04 02:16:17 +02:00
parent 967a5d7896
commit 4758873378

View file

@ -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/