blob: 1e8c1aac454be4298aec381a50bd29c7007f955f (
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.3.0";
requireX = false;
src = fetchFromGitHub {
owner = "mskcc";
repo = "pctGCdata";
rev = "a7385f38783ee0b2acfefe479a64550148927b45";
sha256 = "g0/TlV/a23UuogBc/0m6QTDaHXxFGtmdOSQTiPRGNbE=";
};
buildInputs = [ R ];
};
in buildRPackage rec{
name = "facets-${version}";
version = "0.6.1";
requireX = false;
src = fetchFromGitHub {
owner = "mskcc";
repo = "facets";
rev = "v${version}";
sha256 = "sha256-GbEvhdkS+lCcJclCNtdXJgku6+WhXsUiSp4p2uhtqUs=";
};
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
'';
}
|