2 Commits

  1. 6
      packages/edumpi/default.nix
  2. 37
      packages/pdtoolkit/default.nix
  3. 54
      packages/tau/default.nix
  4. 7
      shared/packages.nix

6
packages/edumpi/default.nix

@ -27,13 +27,13 @@
stdenv.mkDerivation {
pname = "edumpi";
version = "975c54";
version = "407386";
src = fetchFromGitHub {
owner = "AnnaLena77";
repo = "EduMPI";
rev = "b3a503462e261bc40a9191736e73ea9a2a19c219";
hash = "sha256-WZtMjyVMKj/bILJEIEXQAD0qGZgbgu1s1tGvjmzRI7g=";
rev = "40738625c769b1233bc8f61806becda9061b1301";
hash = "sha256-iqOagYduKxxyf/rflv+UZnYfWmjSEjmQPk2owLEQeDQ=";
fetchSubmodules = true;
};

37
packages/pdtoolkit/default.nix

@ -0,0 +1,37 @@
{ stdenv
, fetchzip
, coreutils
, ...
}:
stdenv.mkDerivation rec {
pname = "pdtoolkit";
version = "3.25.1";
src = fetchzip {
url = "https://www.cs.uoregon.edu/research/tau/pdt_releases/pdtoolkit-${version}.tar.gz";
hash = "sha256-IfSc5hlTFqW+y81z0jucVvBiRXQ9SllDsS3K8M2c5Is=";
};
nativeBuildInputs = [
coreutils
];
prePatch = ''
patchShebangs --build configure
for file in configure Makefile; do
substituteInPlace $file \
--replace /bin/rm rm \
--replace /bin/cp cp
done
'';
prefixKey = "-prefix=";
postInstall = ''
chmod -R u=rwX,g=rX,o=rX $out
'';
enableParallelBuilding = true;
}

54
packages/tau/default.nix

@ -0,0 +1,54 @@
{ stdenv
, fetchzip
, coreutils
, which
, callPackage
, libbfd
, pdtoolkit ? callPackage ../pdtoolkit { }
, ...
}:
stdenv.mkDerivation rec {
pname = "tau";
version = "2.32";
src = fetchzip {
url = "https://www.cs.uoregon.edu/research/tau/tau_releases/tau-${version}.tar.gz";
hash = "sha256-0wAvssUHtB4gxRDEq7HMpBB1etLa7zHk8TK27SRmJOE=";
};
nativeBuildInputs = [
coreutils
which
];
buildInputs = [
pdtoolkit
libbfd
];
configureFlags = [
"-pdt=${pdtoolkit}"
];
prePatch = ''
patchShebangs --build configure
for file in configure $(find . -name "Makefile") $(find . -name "Makefile.skel") utils/FixMakefile; do
substituteInPlace $file \
--replace /bin/rm rm \
--replace /bin/cp cp \
--replace /bin/ln ln
done
'';
preBuild = ''
cd $out
'';
prefixKey = "-prefix=";
dontDisableStatic = true;
enableParallelBuilding = true;
}

7
shared/packages.nix

@ -1,7 +1,3 @@
{ pkgs, lib, ... }:
with lib;
{
nixpkgs.overlays = [
(self: super: {
@ -12,6 +8,9 @@ with lib;
openmpi = self.callPackage ../packages/openmpi { };
pdtoolkit = self.callPackage ../packages/pdtoolkit { };
tau = self.callPackage ../packages/tau { };
ucx = super.ucx.overrideAttrs (final: prev: rec {
version = "1.16.0";

Loading…
Cancel
Save