mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
39 lines
863 B
Nix
39 lines
863 B
Nix
{ lib, stdenv, fetchFromGitHub, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "star";
|
|
version = "2.7.10b";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "STAR";
|
|
owner = "alexdobin";
|
|
rev = version;
|
|
sha256 = "sha256-58Y4lzqXwBhRlXcionUg2IhAg5znNUuyr/FsuNZd+5Q=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/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 = [ "x86_64-linux" ];
|
|
maintainers = [ maintainers.arcadio ];
|
|
};
|
|
}
|