-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
17e1174
commit bf9b492
Showing
5 changed files
with
66 additions
and
13 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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.github/ | ||
exec/ | ||
exec/ | ||
_libs/ | ||
shell.nix |
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 |
---|---|---|
|
@@ -51,6 +51,9 @@ rsconnect/ | |
# Vscode | ||
.vscode | ||
|
||
# Nix stuff | ||
_libs/ | ||
|
||
# Test files | ||
exec/slurm-*.out | ||
exec/output/ | ||
|
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,48 @@ | ||
{ pkgs ? import <nixpkgs> { } }: | ||
with pkgs; | ||
let | ||
simquantgen = pkgs.rPackages.buildRPackage { | ||
name = "simquantgen"; | ||
src = pkgs.fetchFromGitHub { | ||
owner = "jeffersonfparil"; | ||
repo = "simquantgen"; | ||
rev = "fed3612a22afa70e3bea758addbe0da421fad7ce"; | ||
sha256 = "sha256-ZGGKV7eR6u7ll4ulejyS0hoji20s4tIjqiyncalZ3Og="; | ||
}; | ||
propagatedBuildInputs = with rPackages; [ | ||
MASS | ||
doParallel | ||
foreach | ||
txtplot | ||
]; | ||
}; ### Use lib.fakeSha256 on "sha256" to get the correct code from the error messages | ||
my-r-pkgs = rWrapper.override { | ||
packages = with rPackages; [ | ||
remotes | ||
devtools | ||
testthat | ||
vcfR | ||
txtplot | ||
glmnet | ||
BGLR | ||
sommer | ||
MASS | ||
parallel | ||
doParallel | ||
foreach | ||
simquantgen | ||
]; | ||
}; | ||
in mkShell { | ||
buildInputs = with pkgs; [git glibcLocales openssl which openssh curl wget ]; | ||
inputsFrom = [ my-r-pkgs ]; | ||
shellHook = '' | ||
mkdir -p "$(pwd)/_libs" | ||
export R_LIBS_USER="$(pwd)/_libs" | ||
''; | ||
GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt"; | ||
# LOCALE_ARCHIVE = stdenv.lib.optionalString stdenv.isLinux | ||
# "${glibcLocales}/lib/locale/locale-archive"; | ||
} | ||
|
||
### nix-shell --run bash --pure |
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
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