bandwidth: drop
No active upstream support.
This commit is contained in:
@@ -1,65 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
requireFile,
|
||||
nasm,
|
||||
}:
|
||||
|
||||
let
|
||||
arch = "bandwidth${toString stdenv.hostPlatform.parsed.cpu.bits}";
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "bandwidth";
|
||||
version = "1.11.2d";
|
||||
|
||||
src = requireFile {
|
||||
message = "This file does not have a valid url.";
|
||||
name = "bandwidth-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-7IrNiCXKf1vyRGl73Ccu3aYMqPVc4PpEr6lnSqIa4Q8=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's,ar ,$(AR) ,g' OOC/Makefile
|
||||
# Remove unnecessary -m32 for 32-bit targets
|
||||
sed -i 's,-m32,,g' OOC/Makefile
|
||||
# Replace arm64 with aarch64
|
||||
sed -i 's#,arm64#,aarch64#g' Makefile
|
||||
# Fix wrong comment character
|
||||
sed -i 's,# 32,; 32,g' routines-x86-32bit.asm
|
||||
# Fix missing symbol exports for macOS clang
|
||||
echo global _VectorToVector128 >> routines-x86-64bit.asm
|
||||
echo global _VectorToVector256 >> routines-x86-64bit.asm
|
||||
# Fix unexpected token on macOS
|
||||
sed -i '/.section .note.GNU-stack/d' *-64bit.asm
|
||||
sed -i '/.section code/d' *-arm-64bit.asm
|
||||
sed -i 's#-Wl,-z,noexecstack##g' Makefile-arm64
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ nasm ];
|
||||
|
||||
buildFlags = [
|
||||
"AR=${stdenv.cc.targetPrefix}ar"
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
"ARM_AS=${stdenv.cc.targetPrefix}as"
|
||||
"ARM_CC=$(CC)"
|
||||
"UNAMEPROC=${stdenv.hostPlatform.parsed.cpu.name}"
|
||||
"UNAMEMACHINE=${stdenv.hostPlatform.parsed.cpu.name}"
|
||||
arch
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm755 ${arch} $out/bin/bandwidth
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Artificial benchmark for identifying weaknesses in the memory subsystem";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
platforms = lib.platforms.x86 ++ lib.platforms.arm ++ lib.platforms.aarch64;
|
||||
maintainers = with lib.maintainers; [ r-burns ];
|
||||
mainProgram = "bandwidth";
|
||||
};
|
||||
})
|
||||
@@ -498,6 +498,7 @@ mapAliases {
|
||||
badtouch = authoscope; # Project was renamed, added 20210626
|
||||
badwolf = throw "'badwolf' has been removed due to being unmaintained"; # Added 2025-04-15
|
||||
baget = throw "'baget' has been removed due to being unmaintained";
|
||||
bandwidth = throw "'bandwidth' has been removed due to lack of maintenance"; # Added 2025-09-01
|
||||
banking = saldo; # added 2025-08-29
|
||||
base16-builder = throw "'base16-builder' has been removed due to being unmaintained"; # Added 2025-06-03
|
||||
baserow = throw "baserow has been removed, due to lack of maintenance"; # Added 2025-08-02
|
||||
|
||||
Reference in New Issue
Block a user