depot/third_party/nixpkgs/pkgs/applications/science/biology/star/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

39 lines
855 B
Nix

{ lib, stdenv, fetchFromGitHub, zlib }:
stdenv.mkDerivation rec {
pname = "star";
version = "2.7.6a";
src = fetchFromGitHub {
repo = "STAR";
owner = "alexdobin";
rev = version;
sha256 = "1zw9f4jbhz0y51namnmid42pa7pviviy94q9db8w0774nksdf8is";
};
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 lib; {
description = "Spliced Transcripts Alignment to a Reference";
homepage = "https://github.com/alexdobin/STAR";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.arcadio ];
};
}