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.

77 lines
1.3 KiB

2 years ago
  1. { stdenv
  2. , fetchurl
  3. , pkgconfig
  4. , util-linux
  5. , which
  6. , libuuid
  7. , attr
  8. , xfsprogs
  9. , rdma-core
  10. , zlib
  11. , openssl
  12. , openssh
  13. , curl
  14. , cmake
  15. , callPackage
  16. , kernel ? null
  17. , ... } :
  18. stdenv.mkDerivation (final: rec {
  19. pname = "beegfs";
  20. version = "7.3.3";
  21. src = fetchurl {
  22. url = "https://git.beegfs.io/pub/v7/-/archive/${version}/v7-${version}.tar.gz";
  23. sha256 = "sha256-XfZY6ge4KWNJn9UE41b7ds2YCMz9FNXFqZd51qCatig=";
  24. };
  25. nativeBuildInputs = [
  26. pkgconfig
  27. which
  28. cmake
  29. ];
  30. buildInputs = [
  31. util-linux
  32. libuuid
  33. attr
  34. xfsprogs
  35. zlib
  36. openssl
  37. rdma-core
  38. openssh
  39. curl
  40. ];
  41. patches = [
  42. ./001-build.patch
  43. ];
  44. dontFixCmake = true;
  45. cmakeFlags = [
  46. "-DBEEGFS_VERSION=${version}"
  47. "-DBEEGFS_SKIP_TESTS=true"
  48. "-DCMAKE_BUILD_TYPE=Release"
  49. "-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
  50. "-DCMAKE_INSTALL_LIBDIR=lib"
  51. ];
  52. hardeningDisable = [ "format" ];
  53. passthru.module = callPackage ./module.nix {
  54. inherit kernel;
  55. beegfs = final;
  56. };
  57. meta = with stdenv.lib; {
  58. description = "High performance distributed filesystem with RDMA support";
  59. homepage = "https://www.beegfs.io";
  60. platforms = [ "i686-linux" "x86_64-linux" ];
  61. license = {
  62. fullName = "BeeGFS_EULA";
  63. url = "https://www.beegfs.io/docs/BeeGFS_EULA.txt";
  64. free = false;
  65. };
  66. };
  67. })