Dustin Frisch
4 months ago
No known key found for this signature in database
GPG Key ID: B4C3BF012D9B26BE
3 changed files with 94 additions and 4 deletions
@ -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; |
|||
} |
@ -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; |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue