NixOS configuration for HPC cluster https://docs.hpc.informatik.hs-fulda.de/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
665 B

  1. { stdenv
  2. , fetchzip
  3. , coreutils
  4. , ...
  5. }:
  6. stdenv.mkDerivation rec {
  7. pname = "pdtoolkit";
  8. version = "3.25.1";
  9. src = fetchzip {
  10. url = "https://www.cs.uoregon.edu/research/tau/pdt_releases/pdtoolkit-${version}.tar.gz";
  11. hash = "sha256-IfSc5hlTFqW+y81z0jucVvBiRXQ9SllDsS3K8M2c5Is=";
  12. };
  13. nativeBuildInputs = [
  14. coreutils
  15. ];
  16. prePatch = ''
  17. patchShebangs --build configure
  18. for file in configure Makefile; do
  19. substituteInPlace $file \
  20. --replace /bin/rm rm \
  21. --replace /bin/cp cp
  22. done
  23. '';
  24. prefixKey = "-prefix=";
  25. postInstall = ''
  26. chmod -R u=rwX,g=rX,o=rX $out
  27. '';
  28. enableParallelBuilding = true;
  29. }