repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
acr-cli: init at 0.14 (#359508)
[NixPkgs.git]
/
pkgs
/
by-name
/
ge
/
geant4
/
tests.nix
blob
f3f359c8725e69f304c053beac34718ab951f8e6
1
{
2
stdenv,
3
cmake,
4
geant4,
5
}:
6
7
{
8
example_B1 = stdenv.mkDerivation {
9
name = "${geant4.name}-test-example_B1";
10
11
inherit (geant4) src;
12
13
nativeBuildInputs = [ cmake ];
14
buildInputs = [ geant4 ];
15
nativeCheckInputs = with geant4.data; [
16
G4EMLOW
17
G4ENSDFSTATE
18
G4PARTICLEXS
19
G4PhotonEvaporation
20
];
21
22
prePatch = ''
23
cd examples/basic/B1
24
'';
25
26
doCheck = true;
27
checkPhase = ''
28
runHook preCheck
29
30
./exampleB1 ../run2.mac
31
32
runHook postCheck
33
'';
34
};
35
}