nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 633 B view raw
1{ 2 stdenv, 3 cmake, 4 geant4, 5}: 6 7{ 8 example_B1 = stdenv.mkDerivation { 9 name = "${geant4.name}-test-example_B1"; 10 11 inherit (geant4) src; 12 13 nativeBuildInputs = [ cmake ]; 14 buildInputs = [ geant4 ]; 15 nativeCheckInputs = with geant4.data; [ 16 G4EMLOW 17 G4ENSDFSTATE 18 G4PARTICLEXS 19 G4PhotonEvaporation 20 ]; 21 22 prePatch = '' 23 cd examples/basic/B1 24 ''; 25 26 doCheck = true; 27 checkPhase = '' 28 runHook preCheck 29 30 ./exampleB1 ../run2.mac 31 32 runHook postCheck 33 ''; 34 35 installPhase = '' 36 runHook preInstall 37 38 touch "$out" 39 40 runHook postInstall 41 ''; 42 }; 43}