14 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
22 hash = "sha256-i8Y+pejiOuyPNJto+/0CmRoAnMljCrnDFx8qDh4I/68=";
36 # Prepare for the Python binding packaging.
39 enableParallelBuilding = true;
46 automake --add-missing
53 # so that users can run $out/bin/simulate directly
54 # without the need of a `run` srcipt.
56 wrapProgram "$out/bin/simulate" \
57 --set RASPA_DIR "$out"
60 passthru.tests.run-an-example = runCommandLocal "raspa-test-run-an-example" { } ''
62 exampleDir="${raspa-data}/share/raspa/examples/Basic/1_MC_Methane_in_Box"
63 exampleDirWritable="$(basename "$exampleDir")"
64 cp -rT "$exampleDir" "./$exampleDirWritable"
65 chmod u+rw -R "$exampleDirWritable"
66 cd "$exampleDirWritable"
72 description = "General purpose classical molecular simulation package";
73 homepage = "https://iraspa.org/raspa/";
74 license = licenses.mit;
75 platforms = platforms.all;
76 maintainers = with maintainers; [ ShamrockLee ];
77 mainProgram = "simulate";