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.

54 lines
938 B

  1. { stdenv
  2. , fetchzip
  3. , coreutils
  4. , which
  5. , callPackage
  6. , libbfd
  7. , pdtoolkit ? callPackage ../pdtoolkit { }
  8. , ...
  9. }:
  10. stdenv.mkDerivation rec {
  11. pname = "tau";
  12. version = "2.32";
  13. src = fetchzip {
  14. url = "https://www.cs.uoregon.edu/research/tau/tau_releases/tau-${version}.tar.gz";
  15. hash = "sha256-0wAvssUHtB4gxRDEq7HMpBB1etLa7zHk8TK27SRmJOE=";
  16. };
  17. nativeBuildInputs = [
  18. coreutils
  19. which
  20. ];
  21. buildInputs = [
  22. pdtoolkit
  23. libbfd
  24. ];
  25. configureFlags = [
  26. "-pdt=${pdtoolkit}"
  27. ];
  28. prePatch = ''
  29. patchShebangs --build configure
  30. for file in configure $(find . -name "Makefile") $(find . -name "Makefile.skel") utils/FixMakefile; do
  31. substituteInPlace $file \
  32. --replace /bin/rm rm \
  33. --replace /bin/cp cp \
  34. --replace /bin/ln ln
  35. done
  36. '';
  37. preBuild = ''
  38. cd $out
  39. '';
  40. prefixKey = "-prefix=";
  41. dontDisableStatic = true;
  42. enableParallelBuilding = true;
  43. }