{ 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; }