Skip to content

Commit

Permalink
Static build for samtools
Browse files Browse the repository at this point in the history
Curses is not supported (it may be possible to support it)
  • Loading branch information
luispedro committed May 4, 2022
1 parent 967a5d7 commit 4758873
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/applications/science/biology/samtools/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 4758873

Please sign in to comment.