platypus: init at 2017-03-07

This commit is contained in:
Justin Bedo 2017-03-07 15:46:53 +11:00 committed by Robert Helgesson
parent f36b72107c
commit 661048c803
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86
2 changed files with 40 additions and 0 deletions

View File

@ -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;
};
}

View File

@ -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 { };