Commit 32f6c5ff authored by Valentin Reis's avatar Valentin Reis
Browse files

bump repoquality.

parent b54de395
Pipeline #5628 passed with stages
in 1 minute and 42 seconds
...@@ -183,7 +183,9 @@ let ...@@ -183,7 +183,9 @@ let
OPENMC_CROSS_SECTIONS = "${openmc-data}/cross_sections.xml"; OPENMC_CROSS_SECTIONS = "${openmc-data}/cross_sections.xml";
OPENMC_PWD = "${argotk}/share/openmc"; OPENMC_PWD = "${argotk}/share/openmc";
}; };
testApplications = test.overrideAttrs (old:{ testApplications = test.overrideAttrs (old:{
name = "testEnv-with-applications";
buildInputs = testBuildInputs ++ [ buildInputs = testBuildInputs ++ [
lammps lammps
qmcpack qmcpack
...@@ -194,8 +196,9 @@ let ...@@ -194,8 +196,9 @@ let
]; ];
}); });
expe = test.overrideAttrs (old:{ expe = testApplications.overrideAttrs (old:{
buildInputs = testBuildInputs ++ [ name = "power-experiments";
buildInputs = old.buildInputs ++ [
#debug tools #debug tools
pkgs.which pkgs.which
zmcat zmcat
...@@ -210,49 +213,44 @@ let ...@@ -210,49 +213,44 @@ let
''; '';
}); });
analysis = analysis = pkgs.stdenv.mkDerivation rec {
pkgs.rWrapper.override{ packages = with pkgs.rPackages; [ name = "analysis";
pkgs.rlwrap src = experiments-src;
pkgs.pandoc
docopt #required to be able to build the drv.
formatR installPhase = "mkdir $out";
purrr unpackPhase = "true";
knitr
cowplot buildInputs = [
plotly (pkgs.rWrapper.override{ packages = with pkgs.rPackages; [
lubridate pkgs.rlwrap
dplyr pkgs.pandoc
ggplot2 docopt
xtable formatR
ggthemes purrr
data_table knitr
];}; cowplot
plotly
jupyter = lubridate
let dplyr
jupyter = import (fetched jupyter/pin.json) {}; ggplot2
in xtable
(jupyter.jupyterlabWith { ggthemes
kernels = [ data_table
(jupyter.kernels.juniperWith { ];})
name = "analysis"; ];
packages = p: with p; [ ggplot2 };
pkgs.which
docopt report = analysis.overrideAttrs (old:{
purrr buildPhase = ''
knitr echo "analysis/zymakefolder.R ${expe}"
cowplot analysis/zymakefolder.R ${expe}
plotly '';
lubridate installPhase = ''
dplyr mkdir -p $out
ggplot2 cp -r index* $out
xtable '';
ggthemes });
data_table
];
})
];
}).env;
doArgotk = drv: command: drv.overrideAttrs (old:{ doArgotk = drv: command: drv.overrideAttrs (old:{
buildPhase = "argotk "+command+" --verbose"; buildPhase = "argotk "+command+" --verbose";
...@@ -275,3 +273,33 @@ let ...@@ -275,3 +273,33 @@ let
}; };
# re-exporting a full nixpkgs-like package set # re-exporting a full nixpkgs-like package set
in pkgs // argopkgs in pkgs // argopkgs
#jupyter =
#let
#jupyter = import (fetched jupyter/pin.json) {};
#in
#(jupyter.jupyterlabWith {
#kernels = [
#(jupyter.kernels.juniperWith {
#name = "analysis";
#packages = p: with p; [ ggplot2
#pkgs.which
#docopt
#purrr
#knitr
#cowplot
#plotly
#lubridate
#dplyr
#ggplot2
#xtable
#ggthemes
#data_table
#];
#})
#];
#}).env;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment