Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
argotk
Commits
56c4e53c
Commit
56c4e53c
authored
Feb 15, 2019
by
Valentin Reis
Browse files
Refactor packaging -> all nix code moves to argopkgs.
parent
ed4c7a0a
Pipeline
#5245
failed with stage
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.envrc
deleted
100644 → 0
View file @
ed4c7a0a
use_nix
default.nix
View file @
56c4e53c
{
hostPkgs
?
import
<
nixpkgs
>
{},
pkgs
?
import
(
hostPkgs
.
nix-update-source
.
fetch
./argopkgs.json
)
.
src
{},
argopkgs
?
import
<
argopkgs
>
{},
}:
let
filterHdevTools
=
builtins
.
filterSource
(
path
:
type
:
baseNameOf
path
!=
".hdevtools.sock"
);
rec
{
argotk
=
argopkgs
.
argotk
.
overrideAttrs
(
old
:{
src
=
./.
;
});
hpkgs
=
pkgs
.
haskellPackages
.
override
{
overrides
=
self
:
super
:
rec
{
argotk
=
(
self
.
callCabal2nix
"argotk"
(
filterHdevTools
./.
)
{})
.
overrideAttrs
(
old
:{
buildInputs
=
old
.
buildInputs
++
[
pkgs
.
hwloc
];});
};
};
devHPackages
=
with
hpkgs
;
[
cabal-install
apply-refact
hdevtools
hindent
hlint
shake
brittany
ghcid
];
in
rec
{
argotk
=
hpkgs
.
argotk
.
overrideAttrs
(
old
:{
installPhase
=
old
.
installPhase
+
''
mkdir $out/share/
ARGOTK_SHARE=share $out/bin/argotk --bash-completion-script argotk > $out/share/argotk.sh
cp -r share/* $out/share/
substituteInPlace $out/share/simple-H2O.xml --replace \
H2O.HF.wfs.xml $out/share/H2O.HF.wfs.xml
substituteInPlace $out/share/simple-H2O.xml --replace \
O.BFD.xml $out/share/O.BFD.xml
substituteInPlace $out/share/simple-H2O.xml --replace \
H.BFD.xml $out/share/H.BFD.xml
''
;
});
hack
=
hpkgs
.
shellFor
{
packages
=
p
:
with
p
;
[
argotk
];
withHoogle
=
true
;
buildInputs
=
devHPackages
;
};
hack
=
argopkgs
.
argolib
.
getHackEnv
argopkgs
argopkgs
.
haskellPackages
argotk
;
preCommit
=
pkgs
.
mkShell
{
preCommit
=
argo
pkgs
.
mkShell
{
name
=
"shake"
;
ARGOTK_SHARE
=
"
${
argotk
}
/share"
;
buildInputs
=
[
(
pkgs
.
haskellPackages
.
ghcWithPackages
(
p
:
with
p
;
[
(
argo
pkgs
.
haskellPackages
.
ghcWithPackages
(
p
:
with
p
;
[
argotk
pkgs
.
hwloc
shake
(
pkgs
.
haskell
.
lib
.
doJailbreak
panpipe
)
panpipe
]))
];
};
...
...
share/openmc/settings.xml
View file @
56c4e53c
...
...
@@ -2,8 +2,8 @@
<settings>
<run_mode>
eigenvalue
</run_mode>
<particles>
100
</particles>
<batches>
1
0
</batches>
<inactive>
2
</inactive>
<batches>
80
0
</batches>
<inactive>
1
</inactive>
<source
strength=
"1.0"
>
<space
type=
"fission"
>
<parameters>
-10.751819999999999 -10.751819999999999 36.007 10.751819999999999 10.751819999999999 236.0066
</parameters>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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