forked from mirrors/nixpkgs
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
44 lines
1 KiB
Nix
44 lines
1 KiB
Nix
{lib, stdenv, fetchFromGitHub, cmake, zlib, python2}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "strelka";
|
|
version = "2.9.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Illumina";
|
|
repo = "strelka";
|
|
rev = "v${version}";
|
|
sha256 = "1nykbmim1124xh22nrhrsn8xgjb3s2y7akrdapn9sl1gdych4ppf";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ zlib python2 ];
|
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
"-Wno-error=maybe-uninitialized"
|
|
"-Wno-error=pessimizing-move"
|
|
];
|
|
|
|
preConfigure = ''
|
|
sed -i 's|/usr/bin/env python|${python2}/bin/python|' src/python/lib/makeRunScript.py
|
|
patchShebangs .
|
|
'';
|
|
|
|
postFixup = ''
|
|
pushd $out/lib/python/pyflow
|
|
sed -i 's|/bin/bash|${stdenv.shell}|' pyflowTaskWrapper.py
|
|
rm pyflowTaskWrapper.pyc
|
|
echo "import pyflowTaskWrapper" | python2
|
|
popd
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Germline and small variant caller";
|
|
license = licenses.gpl3;
|
|
homepage = "https://github.com/Illumina/strelka";
|
|
maintainers = with maintainers; [ jbedo ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
|
|
}
|