nixpkgs/pkgs/by-name/ma/manta/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

36 lines
1.1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, cmake, zlib, python2 }:
stdenv.mkDerivation rec {
pname = "manta";
version = "1.6.0";
src = fetchFromGitHub {
owner = "Illumina";
repo = "manta";
rev = "v${version}";
sha256 = "1711xkcw8rpw9xv3bbm7v1aryjz4r341rkq5255192dg38sgq7w2";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib python2 ];
postFixup = ''
sed -i 's|/usr/bin/env python2|${python2.interpreter}|' $out/lib/python/makeRunScript.py
sed -i 's|/usr/bin/env python|${python2.interpreter}|' $out/lib/python/pyflow/pyflow.py
sed -i 's|/bin/bash|${stdenv.shell}|' $out/lib/python/pyflow/pyflowTaskWrapper.py
'';
doInstallCheck = true;
installCheckPhase = ''
rm $out/lib/python/**/*.pyc
PYTHONPATH=$out/lib/python:$PYTHONPATH python -c 'import makeRunScript'
PYTHONPATH=$out/lib/python/pyflow:$PYTHONPATH python -c 'import pyflowTaskWrapper; import pyflow'
'';
meta = with lib; {
description = "Structural variant caller";
license = licenses.gpl3;
homepage = "https://github.com/Illumina/manta";
maintainers = with maintainers; [ jbedo ];
platforms = platforms.x86_64;
};
}