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.

78 lines
1.3 KiB

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