nixpkgs/pkgs/applications/science/biology/platypus/default.nix

40 lines
1 KiB
Nix
Raw Normal View History

{lib, stdenv, fetchFromGitHub, python27, htslib, zlib, makeWrapper}:
2017-03-07 04:46:53 +00:00
let python = python27.withPackages (ps: with ps; [ cython ]);
2019-08-13 21:52:01 +00:00
in stdenv.mkDerivation {
pname = "platypus-unstable";
2018-09-21 22:41:51 +00:00
version = "2018-07-22";
2017-03-07 04:46:53 +00:00
src = fetchFromGitHub {
owner = "andyrimmer";
repo = "Platypus";
2018-09-21 22:41:51 +00:00
rev = "3e72641c69800da0cd4906b090298e654d316ee1";
sha256 = "0nah6r54b8xm778gqyb8b7rsd76z8ji4g73sm6rvpw5s96iib1vw";
2017-03-07 04:46:53 +00:00
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ htslib python zlib ];
2017-03-07 04:46:53 +00:00
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 lib; {
2017-03-07 04:46:53 +00:00
description = "The Platypus variant caller";
license = licenses.gpl3;
homepage = "https://github.com/andyrimmer/Platypus";
2017-03-07 04:46:53 +00:00
maintainers = with maintainers; [ jbedo ];
platforms = platforms.x86_64;
2017-03-07 04:46:53 +00:00
};
}