Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
argopkgs
Commits
32f6c5ff
Commit
32f6c5ff
authored
Feb 25, 2019
by
Valentin Reis
Browse files
bump repoquality.
parent
b54de395
Pipeline
#5628
passed with stages
in 1 minute and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pkgs/default.nix
View file @
32f6c5ff
...
...
@@ -183,7 +183,9 @@ let
OPENMC_CROSS_SECTIONS
=
"
${
openmc-data
}
/cross_sections.xml"
;
OPENMC_PWD
=
"
${
argotk
}
/share/openmc"
;
};
testApplications
=
test
.
overrideAttrs
(
old
:{
name
=
"testEnv-with-applications"
;
buildInputs
=
testBuildInputs
++
[
lammps
qmcpack
...
...
@@ -194,8 +196,9 @@ let
];
});
expe
=
test
.
overrideAttrs
(
old
:{
buildInputs
=
testBuildInputs
++
[
expe
=
testApplications
.
overrideAttrs
(
old
:{
name
=
"power-experiments"
;
buildInputs
=
old
.
buildInputs
++
[
#debug tools
pkgs
.
which
zmcat
...
...
@@ -210,49 +213,44 @@ let
''
;
});
analysis
=
pkgs
.
rWrapper
.
override
{
packages
=
with
pkgs
.
rPackages
;
[
pkgs
.
rlwrap
pkgs
.
pandoc
docopt
formatR
purrr
knitr
cowplot
plotly
lubridate
dplyr
ggplot2
xtable
ggthemes
data_table
];};
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
;
analysis
=
pkgs
.
stdenv
.
mkDerivation
rec
{
name
=
"analysis"
;
src
=
experiments-src
;
#required to be able to build the drv.
installPhase
=
"mkdir $out"
;
unpackPhase
=
"true"
;
buildInputs
=
[
(
pkgs
.
rWrapper
.
override
{
packages
=
with
pkgs
.
rPackages
;
[
pkgs
.
rlwrap
pkgs
.
pandoc
docopt
formatR
purrr
knitr
cowplot
plotly
lubridate
dplyr
ggplot2
xtable
ggthemes
data_table
];})
];
};
report
=
analysis
.
overrideAttrs
(
old
:{
buildPhase
=
''
echo "analysis/zymakefolder.R
${
expe
}
"
analysis/zymakefolder.R
${
expe
}
''
;
installPhase
=
''
mkdir -p $out
cp -r index* $out
''
;
});
doArgotk
=
drv
:
command
:
drv
.
overrideAttrs
(
old
:{
buildPhase
=
"argotk "
+
command
+
" --verbose"
;
...
...
@@ -275,3 +273,33 @@ let
};
# re-exporting a full nixpkgs-like package set
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;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment