depot/third_party/nixpkgs/pkgs/applications/science/molecular-dynamics/raspa/data.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

30 lines
666 B
Nix

{ lib
, stdenvNoCC
, raspa
}:
stdenvNoCC.mkDerivation rec {
pname = "raspa-data";
inherit (raspa) version src;
outputs = [ "out" "doc" ];
installPhase = ''
runHook preInstall
mkdir -p "$out/share/raspa"
mv examples "$out/share/raspa"
mkdir -p "$doc/share/raspa"
mv -T "Docs" "$doc/share/raspa/doc"
runHook postInstall
'';
# Keep the shebangs of the examples from being patched
dontPatchShebangs = true;
meta = with lib; {
inherit (raspa.meta) homepage license maintainers;
description = "Example packs and documentation of RASPA";
outputsToInstall = [ "out" "doc" ];
platforms = lib.platforms.all;
};
}