Browse Source

packages: add cube and related packages

main
Dustin Frisch 9 months ago
parent
commit
31fdd46620
No known key found for this signature in database GPG Key ID: B4C3BF012D9B26BE
  1. 27
      packages/cubelib/default.nix
  2. 1
      packages/cubelib/result
  3. 27
      packages/cubew/default.nix
  4. 1
      packages/cubew/result
  5. 0
      packages/edumpi/default.nix
  6. 21
      packages/opari2/default.nix
  7. 1
      packages/opari2/result
  8. 15
      packages/otf2/default.nix
  9. 1
      packages/otf2/result
  10. 53
      packages/scalasca/default.nix
  11. 1
      packages/scalasca/result
  12. 46
      packages/scorep/default.nix
  13. 1
      packages/scorep/result
  14. 1
      shared/default.nix
  15. 2
      shared/edumpi.nix
  16. 17
      shared/packages.nix
  17. 3
      shared/userenv.nix

27
packages/cubelib/default.nix

@ -0,0 +1,27 @@
{ stdenv
, fetchzip
, zlib
, which
, pkg-config
, ...
}:
stdenv.mkDerivation rec {
name = "cubelib";
version = "4.8.2";
src = fetchzip {
url = "https://perftools.pages.jsc.fz-juelich.de/cicd/${name}/tags/${name}-${version}/${name}-${version}.tar.gz";
hash = "sha256-Ky6p6jAdHABQJs64VuIBDBWcujEBDVlyVTa8pZyQ2rM=";
};
nativeBuildInputs = [
pkg-config
which
];
buildInputs = [
zlib
];
}

1
packages/cubelib/result

@ -0,0 +1 @@
/nix/store/zaxgv6nc3mia1lgwwkfazmqazdh299hf-cubelib

27
packages/cubew/default.nix

@ -0,0 +1,27 @@
{ stdenv
, fetchzip
, zlib
, which
, pkg-config
, ...
}:
stdenv.mkDerivation rec {
name = "cubew";
version = "4.8.2";
src = fetchzip {
url = "https://perftools.pages.jsc.fz-juelich.de/cicd/${name}/tags/${name}-${version}/${name}-${version}.tar.gz";
hash = "sha256-Ky6p6jAdHABQJs64VuIBDBWcujEBDVlyVTa8pZyQ2rM=";
};
nativeBuildInputs = [
pkg-config
which
];
buildInputs = [
zlib
];
}

1
packages/cubew/result

@ -0,0 +1 @@
/nix/store/lzdccb2yrwnsif0rvb8rcnraw4yvb3fp-cubew

0
packages/edumpi.nix → packages/edumpi/default.nix

21
packages/opari2/default.nix

@ -0,0 +1,21 @@
{ stdenv
, fetchzip
, ...
}:
stdenv.mkDerivation rec {
name = "opari2";
version = "2.0.8";
src = fetchzip {
url = "https://perftools.pages.jsc.fz-juelich.de/cicd/${name}/tags/${name}-${version}/${name}-${version}.tar.gz";
hash = "sha256-vrgoUIV+dyVvYJigdu3XXVDzDQrZZo2mHrmm2orVMXI=";
};
nativeBuildInputs = [
];
buildInputs = [
];
}

1
packages/opari2/result

@ -0,0 +1 @@
/nix/store/m9bi6nky6ldb7dim9l4dw1vhck06dfvd-opari2

15
packages/otf2/default.nix

@ -0,0 +1,15 @@
{ stdenv
, fetchzip
, ...
}:
stdenv.mkDerivation rec {
name = "otf2";
version = "3.0.3";
src = fetchzip {
url = "https://perftools.pages.jsc.fz-juelich.de/cicd/${name}/tags/${name}-${version}/${name}-${version}.tar.gz";
hash = "sha256-SELtnvnN6VNqJRZFU5SdOd19rAZHL8P9KZv8qu2uqu0=";
};
}

1
packages/otf2/result

@ -0,0 +1 @@
/nix/store/ibpvvkjkqg79j8jnm7539yjy938jlf9a-otf2

53
packages/scalasca/default.nix

@ -0,0 +1,53 @@
{ stdenv
, fetchzip
, openmpi
, libbfd
, libz
, lib
, which
, ...
}:
with lib;
stdenv.mkDerivation rec {
pname = "scalasca";
version = "2.6.1";
src = fetchzip {
url = "https://apps.fz-juelich.de/${pname}/releases/${pname}/${versions.majorMinor version}/dist/${pname}-${version}.tar.gz";
hash = "sha256-GENZD8ep9ukWR9SgZw4bocIO6XCAyYgT5G44zkt7hbc=";
};
configureFlags = [
"--with-mpi=openmpi"
];
nativeBuildinputs = [
which
];
buildInputs = [
openmpi
libbfd
libz
];
preFixup = ''
for f in "$out"/{bin,lib}/*; do
if [ -f "$f" ] && isELF "$f"; then
patchelf \
--add-rpath "$out"/lib \
"$f"
patchelf \
--shrink-rpath \
--allowed-rpath-prefixes "$NIX_STORE" \
"$f"
fi
done
'';
enableParallelBuilding = true;
}

1
packages/scalasca/result

@ -0,0 +1 @@
/nix/store/fy2y6jh57ps5vlfi0h3ll2dz4qsfh2k0-scalasca-2.6.1

46
packages/scorep/default.nix

@ -0,0 +1,46 @@
{ stdenv
, fetchzip
, openmpi
, libbfd
, papi
, which
, pkg-config
, callPackage
, cubew ? callPackage ../cubew { }
, cubelib ? callPackage ../cubelib { }
, otf2 ? callPackage ../otf2 { }
, opari2 ? callPackage ../opari2 { }
, ...
}:
stdenv.mkDerivation rec {
pname = "scorep";
version = "8.3";
src = fetchzip {
url = "https://perftools.pages.jsc.fz-juelich.de/cicd/${pname}/tags/${pname}-${version}/${pname}-${version}.tar.gz";
hash = "sha256-YGF+qG4BSpj2HoyQD/Tnm3vGMtwN4iSSxFyF3coceOY=";
};
configureFlags = [
"--with-mpi=openmpi"
];
nativeBuildInputs = [
pkg-config
which
];
buildInputs = [
openmpi
libbfd
papi
cubew
cubelib
otf2
opari2
];
enableParallelBuilding = true;
}

1
packages/scorep/result

@ -0,0 +1 @@
/nix/store/6z986prqcs7l4jyhyf90q9nmpxh716ml-scorep-8.3

1
shared/default.nix

@ -2,6 +2,7 @@
{ {
imports = [ imports = [
./packages.nix
./network.nix ./network.nix
./users.nix ./users.nix
./userenv.nix ./userenv.nix

2
shared/edumpi.nix

@ -3,7 +3,7 @@
with lib; with lib;
let let
edumpi = pkgs.callPackage ../packages/edumpi.nix { };
edumpi = pkgs.callPackage ../packages/edumpi { };
in in
{ {

17
shared/packages.nix

@ -0,0 +1,17 @@
{ pkgs, lib, ... }:
with lib;
{
nixpkgs.overlays = [
(self: super: {
cubelib = self.callPackage ../packages/cubelib { };
cubew = self.callPackage ../packages/cubew { };
opari2 = self.callPackage ../packages/opari2 { };
otf2 = self.callPackage ../packages/otf2 { };
scalasca = self.callPackage ../packages/scalasca { };
scorep = self.callPackage ../packages/scorep { };
})
];
}

3
shared/userenv.nix

@ -48,6 +48,9 @@ let
vim vim
wget wget
(getDev zlib) (getDev zlib)
(getBin scorep)
(getBin scalasca)
]; ];
ignoreCollisions = false; ignoreCollisions = false;

Loading…
Cancel
Save