about summary refs log tree commit diff
path: root/pkgs/applications/science/biology
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2017-03-07 15:46:53 +1100
committerRobert Helgesson <robert@rycee.net>2017-03-08 22:36:03 +0100
commit661048c803f7c0c7aa1915162580b7c21316a4a3 (patch)
tree48021229f2e0c4516d89cd1c5ad6754ac462cee8 /pkgs/applications/science/biology
parentf36b72107c57f5a5c7cbd3a8f9cb63f5f0231e76 (diff)
downloadnixlib-661048c803f7c0c7aa1915162580b7c21316a4a3.tar
nixlib-661048c803f7c0c7aa1915162580b7c21316a4a3.tar.gz
nixlib-661048c803f7c0c7aa1915162580b7c21316a4a3.tar.bz2
nixlib-661048c803f7c0c7aa1915162580b7c21316a4a3.tar.lz
nixlib-661048c803f7c0c7aa1915162580b7c21316a4a3.tar.xz
nixlib-661048c803f7c0c7aa1915162580b7c21316a4a3.tar.zst
nixlib-661048c803f7c0c7aa1915162580b7c21316a4a3.zip
platypus: init at 2017-03-07
Diffstat (limited to 'pkgs/applications/science/biology')
-rw-r--r--pkgs/applications/science/biology/platypus/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/science/biology/platypus/default.nix b/pkgs/applications/science/biology/platypus/default.nix
new file mode 100644
index 000000000000..868540fcbc3b
--- /dev/null
+++ b/pkgs/applications/science/biology/platypus/default.nix
@@ -0,0 +1,38 @@
+{stdenv, fetchFromGitHub, python27, htslib, zlib, makeWrapper}:
+
+let python = python27.withPackages (ps: with ps; [ cython ]);
+
+in stdenv.mkDerivation rec {
+  name = "platypus-unstable-${version}";
+  version = "2017-03-07";
+
+  src = fetchFromGitHub {
+    owner = "andyrimmer";
+    repo = "Platypus";
+    rev = "cbbd914";
+    sha256 = "0xgj3pl7n4c12j5pp5qyjfk4rsvb5inwzrpcbhdf3br5f3mmdsb9";
+  };
+
+  buildInputs = [ htslib python zlib makeWrapper ];
+
+  buildPhase = ''
+    patchShebangs .
+    make
+  '';
+
+  installPhase = ''
+    mkdir -p $out/libexec/platypus
+    cp -r ./* $out/libexec/platypus
+
+    mkdir -p $out/bin
+    makeWrapper ${python}/bin/python $out/bin/platypus --add-flags "$out/libexec/platypus/bin/Platypus.py"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "The Platypus variant caller";
+    license = licenses.gpl3;
+    homepage = https://github.com/andyrimmer/Platypus;
+    maintainers = with maintainers; [ jbedo ];
+    platforms = platforms.unix;
+  };
+}