summary refs log tree commit diff
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorJason Daniel Augustine Gilliland <jdagilliland@gmail.com>2016-12-17 00:36:53 -0500
committerzimbatm <zimbatm@zimbatm.com>2016-12-22 14:10:37 +0000
commit59ca5d213f99d10f9cc187763876b5c4008bac7d (patch)
treede014a8a7f819a97f663c924c6ee56a212c86262 /pkgs/applications/science
parentaf2ecc27fccc7f1e3ed3081f79f2894dde6b8f30 (diff)
downloadnixpkgs-59ca5d213f99d10f9cc187763876b5c4008bac7d.tar
nixpkgs-59ca5d213f99d10f9cc187763876b5c4008bac7d.tar.gz
nixpkgs-59ca5d213f99d10f9cc187763876b5c4008bac7d.tar.bz2
nixpkgs-59ca5d213f99d10f9cc187763876b5c4008bac7d.tar.lz
nixpkgs-59ca5d213f99d10f9cc187763876b5c4008bac7d.tar.xz
nixpkgs-59ca5d213f99d10f9cc187763876b5c4008bac7d.tar.zst
nixpkgs-59ca5d213f99d10f9cc187763876b5c4008bac7d.zip
freebayes: init at 1.1.0
Signed-off-by: zimbatm <zimbatm@zimbatm.com>
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/biology/freebayes/builder.sh11
-rw-r--r--pkgs/applications/science/biology/freebayes/default.nix27
2 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/science/biology/freebayes/builder.sh b/pkgs/applications/science/biology/freebayes/builder.sh
new file mode 100644
index 00000000000..a9f56e77d7e
--- /dev/null
+++ b/pkgs/applications/science/biology/freebayes/builder.sh
@@ -0,0 +1,11 @@
+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
new file mode 100644
index 00000000000..ef0da619b25
--- /dev/null
+++ b/pkgs/applications/science/biology/freebayes/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchFromGitHub, cmake, gcc, zlib}:
+
+stdenv.mkDerivation rec {
+  name    = "freebayes-${version}";
+  version = "1.1.0";
+
+  src = fetchFromGitHub {
+    name = "freebayes-${version}-src";
+    owner  = "ekg";
+    repo   = "freebayes";
+    rev    = "refs/tags/v${version}";
+    sha256 = "0xb8aicb36w9mfs1gq1x7mcp3p82kl7i61d162hfncqzg2npg8rr";
+    fetchSubmodules = true;
+  };
+
+  buildInputs = [ cmake gcc zlib ];
+
+  builder = ./builder.sh;
+
+  meta = with stdenv.lib; {
+    description = "Bayesian haplotype-based polymorphism discovery and genotyping";
+    license     = licenses.mit;
+    homepage    = https://github.com/ekg/freebayes;
+    maintainers = with maintainers; [ jdagilliland ];
+    platforms = [ "x86_64-linux" ];
+  };
+}