forked from mirrors/nixpkgs
024efc9509
By seperating the datasets, geant4 now builds in a sandbox. Resolves #39766
30 lines
628 B
Nix
30 lines
628 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
let
|
|
fetch = { version, src ? builtins.getAttr stdenv.system sources, sources ? null }:
|
|
{
|
|
inherit version src;
|
|
};
|
|
|
|
in {
|
|
v10_0_2 = fetch {
|
|
version = "10.0.2";
|
|
|
|
src = fetchurl{
|
|
url = "http://geant4.cern.ch/support/source/geant4.10.00.p02.tar.gz";
|
|
sha256 = "9d615200901f1a5760970e8f5970625ea146253e4f7c5ad9df2a9cf84549e848";
|
|
};
|
|
};
|
|
|
|
v10_4_1 = fetch {
|
|
version = "10.4.1";
|
|
|
|
src = fetchurl{
|
|
url = "http://cern.ch/geant4-data/releases/geant4.10.04.p01.tar.gz";
|
|
sha256 = "a3eb13e4f1217737b842d3869dc5b1fb978f761113e74bd4eaf6017307d234dd";
|
|
};
|
|
};
|
|
|
|
}
|
|
|