4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
39 lines
999 B
Nix
39 lines
999 B
Nix
{lib, stdenv, fetchFromGitHub, python27, htslib, zlib, makeWrapper}:
|
|
|
|
let python = python27.withPackages (ps: with ps; [ cython ]);
|
|
|
|
in stdenv.mkDerivation {
|
|
pname = "platypus-unstable";
|
|
version = "2018-07-22";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "andyrimmer";
|
|
repo = "Platypus";
|
|
rev = "3e72641c69800da0cd4906b090298e654d316ee1";
|
|
sha256 = "0nah6r54b8xm778gqyb8b7rsd76z8ji4g73sm6rvpw5s96iib1vw";
|
|
};
|
|
|
|
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 lib; {
|
|
description = "The Platypus variant caller";
|
|
license = licenses.gpl3;
|
|
homepage = "https://github.com/andyrimmer/Platypus";
|
|
maintainers = with maintainers; [ jbedo ];
|
|
platforms = platforms.x86_64;
|
|
};
|
|
}
|