diff options
author | Justin Bedo <cu@cua0.org> | 2017-03-07 15:46:53 +1100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2017-03-08 22:36:03 +0100 |
commit | 661048c803f7c0c7aa1915162580b7c21316a4a3 (patch) | |
tree | 48021229f2e0c4516d89cd1c5ad6754ac462cee8 /pkgs/applications/science/biology | |
parent | f36b72107c57f5a5c7cbd3a8f9cb63f5f0231e76 (diff) | |
download | nixpkgs-661048c803f7c0c7aa1915162580b7c21316a4a3.tar nixpkgs-661048c803f7c0c7aa1915162580b7c21316a4a3.tar.gz nixpkgs-661048c803f7c0c7aa1915162580b7c21316a4a3.tar.bz2 nixpkgs-661048c803f7c0c7aa1915162580b7c21316a4a3.tar.lz nixpkgs-661048c803f7c0c7aa1915162580b7c21316a4a3.tar.xz nixpkgs-661048c803f7c0c7aa1915162580b7c21316a4a3.tar.zst nixpkgs-661048c803f7c0c7aa1915162580b7c21316a4a3.zip |
platypus: init at 2017-03-07
Diffstat (limited to 'pkgs/applications/science/biology')
-rw-r--r-- | pkgs/applications/science/biology/platypus/default.nix | 38 |
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 00000000000..868540fcbc3 --- /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; + }; +} |