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