-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
41 lines (40 loc) · 1.21 KB
/
flake.nix
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
{
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
with import nixpkgs { inherit system; };
with rPackages; {
defaultPackage = (buildRPackage {
name = "svaNUMT";
src = ./.;
propagatedBuildInputs = [
GenomicRanges
rtracklayer
StructuralVariantAnnotation
VariantAnnotation
assertthat
Biostrings
dplyr
rlang
GenomicFeatures
GenomeInfoDb
S4Vectors
];
}).overrideAttrs (_: {
doCheck = true;
checkInputs = [ BiocCheck ];
script = writeText "bioc-check.r" ''
library(BiocCheck)
BiocCheck(paste0(Sys.getenv("TMPDIR"), "/svaRetro")
, `no-check-deprecated`=T # Requires net
, `no-check-CRAN`=T # Requires net
, `no-check-version-num`=T # No idea why this fails
, `quit-with-status`=T)
'';
checkPhase = ''
cp -r $PWD $TMPDIR/svaRetro
Rscript $script
'';
});
});
}