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
Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git]
/
pkgs
/
development
/
libraries
/
physics
/
geant4
/
tests.nix
blob
7d68780e2eb2852909e20c9a15bbdb4c51eb4716
1
{ stdenv, cmake, geant4 }:
2
3
{
4
example_B1 = stdenv.mkDerivation {
5
name = "${geant4.name}-test-example_B1";
6
7
inherit (geant4) src;
8
9
nativeBuildInputs = [ cmake ];
10
buildInputs = [ geant4 ];
11
nativeCheckInputs = with geant4.data; [
12
G4EMLOW
13
G4ENSDFSTATE
14
G4PARTICLEXS
15
G4PhotonEvaporation
16
];
17
18
prePatch = ''
19
cd examples/basic/B1
20
'';
21
22
doCheck = true;
23
checkPhase = ''
24
runHook preCheck
25
26
./exampleB1 ../run2.mac
27
28
runHook postCheck
29
'';
30
};
31
}