nixpkgs-suyu/pkgs/applications/science/biology/star/default.nix

40 lines
855 B
Nix
Raw Normal View History

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