Browse Source

Add pdtoolkit and tau

main
Dustin Frisch 4 months ago
parent
commit
031d9a631c
No known key found for this signature in database GPG Key ID: B4C3BF012D9B26BE
  1. 37
      packages/pdtoolkit/default.nix
  2. 54
      packages/tau/default.nix
  3. 7
      shared/packages.nix

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