nixpkgs/pkgs/applications/science/biology/star/default.nix
2019-11-03 10:23:05 +01:00

40 lines
857 B
Nix

{ stdenv, fetchFromGitHub, zlib }:
stdenv.mkDerivation rec {
pname = "star";
version = "2.7.3a";
src = fetchFromGitHub {
repo = "STAR";
owner = "alexdobin";
rev = version;
sha256 = "1hgiqw5qhs0pc1xazzihcfd92na02xyq2kb469z04y1v51kpvvjq";
};
sourceRoot = "source/source";
postPatch = ''
substituteInPlace Makefile --replace "/bin/rm" "rm"
'';
buildInputs = [ zlib ];
buildFlags = [ "STAR" "STARlong" ];
enableParallelBuilding = true;
installPhase = ''
runHook preInstall
install -D STAR STARlong -t $out/bin
runHook postInstall
'';
meta = with stdenv.lib; {
description = "Spliced Transcripts Alignment to a Reference";
homepage = "https://github.com/alexdobin/STAR";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.arcadio ];
};
}