-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ stdenv, fetchTarball, makeWrapper, | ||
cmake, autoconf, pkgconfig | ||
cudatoolkit, linuxPackages, | ||
bash, curl, unzip, bzip2, lzma | ||
boost, tbb, jemalloc }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "${pname}-${version}"; | ||
pname = "salmon"; | ||
version = "0.12.0"; | ||
|
||
src = fetchTarball { | ||
url = "https://github.com/COMBINE-lab/salmon/archive/v${version}.tar.gz"; | ||
sha256 = "1dr8maifd6hv45812l4w244npxmd2v73fzqmngs12amb2lq1jzxm"; | ||
}; | ||
|
||
buildInputs = [ | ||
makeWrapper | ||
cmake autoconf pkgconfig | ||
cudatoolkit linuxPackages.nvidia_x11 | ||
bash curl unzip bzip2 lzma | ||
boost tbb jemalloc | ||
]; | ||
|
||
CUDA_PATH = "${cudatoolkit}"; | ||
|
||
preConfigure = '' | ||
for i in scripts/*.sh; do | ||
substituteInPlace $i --replace /bin/bash ${bash}/bin/bash | ||
done | ||
substituteInPlace CMakeLists.txt --replace \ | ||
'set(Boost_USE_STATIC_LIBS ON)' \ | ||
'set(Boost_USE_STATIC_LIBS OFF)' | ||
''; | ||
|
||
installTargets = "install-bin install-doc"; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Highly-accurate & wicked fast transcript-level quantification from RNA-seq reads using lightweight alignments"; | ||
license = licenses.gpl3; | ||
homepage = https://combine-lab.github.io/salmon; | ||
platforms = platforms.unix; | ||
maintainers = [ maintainers.bmpvieira ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters