From 7cbf3a27de3bcb9d090a5ef205f238c2e69e0786 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Thu, 28 Sep 2017 00:52:58 +0200 Subject: [PATCH] freebayes: clean up build --- .../applications/science/biology/freebayes/builder.sh | 11 ----------- .../science/biology/freebayes/default.nix | 6 ++++-- 2 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 pkgs/applications/science/biology/freebayes/builder.sh diff --git a/pkgs/applications/science/biology/freebayes/builder.sh b/pkgs/applications/science/biology/freebayes/builder.sh deleted file mode 100644 index a9f56e77d7e3..000000000000 --- a/pkgs/applications/science/biology/freebayes/builder.sh +++ /dev/null @@ -1,11 +0,0 @@ -source $stdenv/setup - -unpackPhase - -cd freebayes-* - -make - -mkdir -p $out/bin -cp bin/freebayes bin/bamleftalign $out/bin -cp scripts/* $out/bin diff --git a/pkgs/applications/science/biology/freebayes/default.nix b/pkgs/applications/science/biology/freebayes/default.nix index ec11e4ccb307..99d2dfa55ddd 100644 --- a/pkgs/applications/science/biology/freebayes/default.nix +++ b/pkgs/applications/science/biology/freebayes/default.nix @@ -13,9 +13,11 @@ stdenv.mkDerivation rec { fetchSubmodules = true; }; - buildInputs = [ cmake gcc zlib bzip2 lzma ]; + buildInputs = [ zlib bzip2 lzma ]; - builder = ./builder.sh; + installPhase = '' + install -vD bin/freebayes bin/bamleftalign scripts/* -t $out/bin + ''; meta = with stdenv.lib; { description = "Bayesian haplotype-based polymorphism discovery and genotyping";