bandwidth: 1.11.2 -> 1.11.2d

This commit is contained in:
Weijia Wang 2023-03-17 11:14:06 +02:00
parent a8fa8c2e90
commit 0ba38371e2

View file

@ -6,11 +6,11 @@ let
in
stdenv.mkDerivation rec {
pname = "bandwidth";
version = "1.11.2";
version = "1.11.2d";
src = fetchurl {
url = "https://zsmith.co/archives/${pname}-${version}.tar.gz";
sha256 = "sha256-mjtvQAOH9rv12XszGdD5hIX197er7Uc74WfVaP32TpM=";
hash = "sha256-7IrNiCXKf1vyRGl73Ccu3aYMqPVc4PpEr6lnSqIa4Q8=";
};
postPatch = ''
@ -24,6 +24,10 @@ stdenv.mkDerivation rec {
# 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 ];