mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
571c71e6f7
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.
40 lines
1022 B
Nix
40 lines
1022 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";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ htslib python zlib ];
|
|
|
|
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 = "Platypus variant caller";
|
|
license = licenses.gpl3;
|
|
homepage = "https://github.com/andyrimmer/Platypus";
|
|
maintainers = with maintainers; [ jbedo ];
|
|
platforms = platforms.x86_64;
|
|
};
|
|
}
|