blob: 8c3c1b52155bd47d9b19209ff15a905ad93db820 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{buildRPackage
,fetchFromGitHub
,R
,htslib
,zlib}:
let
pctGCdata = buildRPackage rec {
name = "pctGCdata-${version}";
version = "0.2.0";
requireX = false;
src = fetchFromGitHub {
owner = "mskcc";
repo = "pctGCdata";
rev = "v${version}";
sha256 = "1qq0fmm3zwz6rv0ka82850ww0qj50621gln9i0gfs8k3wyqil4l8";
};
buildInputs = [ R ];
};
in buildRPackage rec{
name = "facets-${version}";
version = "0.5.14";
requireX = false;
src = fetchFromGitHub {
owner = "mskcc";
repo = "facets";
rev = "v${version}";
sha256 = "081afjynam22l7m11hg286gzx3lsivh11kyv5fvp3ni1a25adlsz";
};
buildInputs = [ R htslib zlib ];
propagatedBuildInputs = [ pctGCdata ];
postBuild = ''
cd inst/extcode
g++ --std=c++11 snp-pileup.cpp -lhts -o snp-pileup
cd ../../
'';
postInstall = ''
mkdir -p $out/bin
cp inst/extcode/snp-pileup $out/bin
'';
}
|