acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / ge / geant4 / tests.nix
blobf3f359c8725e69f304c053beac34718ab951f8e6
2   stdenv,
3   cmake,
4   geant4,
5 }:
8   example_B1 = stdenv.mkDerivation {
9     name = "${geant4.name}-test-example_B1";
11     inherit (geant4) src;
13     nativeBuildInputs = [ cmake ];
14     buildInputs = [ geant4 ];
15     nativeCheckInputs = with geant4.data; [
16       G4EMLOW
17       G4ENSDFSTATE
18       G4PARTICLEXS
19       G4PhotonEvaporation
20     ];
22     prePatch = ''
23       cd examples/basic/B1
24     '';
26     doCheck = true;
27     checkPhase = ''
28       runHook preCheck
30       ./exampleB1 ../run2.mac
32       runHook postCheck
33     '';
34   };