diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-12-09 18:55:19 +0000 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-12-09 18:55:19 +0000 |
commit | 80d90d9b204f7c17912740f9f414fe5d59f293ba (patch) | |
tree | 5f2065a06e724270610760d59d01c6888b375a46 /infra/libkookie/nixpkgs/pkgs/development/libraries/physics/geant4/tests.nix | |
parent | 3a31a84c7d3e589035ad08499206aac44a81f424 (diff) | |
parent | 83cbad92d73216bb0d9187c56cce0b91f9121d5a (diff) |
Merge commit '83cbad92d73216bb0d9187c56cce0b91f9121d5a' into main
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/libraries/physics/geant4/tests.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/libraries/physics/geant4/tests.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/libraries/physics/geant4/tests.nix b/infra/libkookie/nixpkgs/pkgs/development/libraries/physics/geant4/tests.nix new file mode 100644 index 000000000000..83afee6089d4 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/libraries/physics/geant4/tests.nix @@ -0,0 +1,31 @@ +{ stdenv, cmake, geant4 }: + +{ + example_B1 = stdenv.mkDerivation { + name = "${geant4.name}-test-example_B1"; + + inherit (geant4) src; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ geant4 ]; + checkInputs = with geant4.data; [ + G4EMLOW + G4ENSDFSTATE + G4PARTICLEXS + G4PhotonEvaporation + ]; + + prePatch = '' + cd examples/basic/B1 + ''; + + doCheck = true; + checkPhase = '' + runHook preCheck + + ./exampleB1 ../run2.mac + + runHook postCheck + ''; + }; +} |