Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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}