Skip to content

Commit

Permalink
platypus: init at 2017-03-07
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedo authored and rycee committed Mar 8, 2017
1 parent f36b721 commit 661048c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/applications/science/biology/platypus/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16996,6 +16996,8 @@ with pkgs;

paml = callPackage ../applications/science/biology/paml { };

platypus = callPackage ../applications/science/biology/platypus/default.nix { };

plink = callPackage ../applications/science/biology/plink/default.nix { };

plink-ng = callPackage ../applications/science/biology/plink-ng/default.nix { };
Expand Down

0 comments on commit 661048c

Please sign in to comment.