2021-10-17 09:34:42 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, nasm }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "isa-l";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "2.31.0";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intel";
|
|
|
|
repo = "isa-l";
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "sha256-xBBtpjtWyba0DogdLobtuWmiiAHTXMK4oRnjYuTUCNk=";
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ nasm autoreconfHook ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export AS=nasm
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Collection of optimised low-level functions targeting storage applications";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "igzip";
|
2021-10-17 09:34:42 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = "https://github.com/intel/isa-l";
|
|
|
|
maintainers = with maintainers; [ jbedo ];
|
|
|
|
platforms = platforms.all;
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; # does not build on M1 mac (asm/hwcap.h file not found) maybe needs gcc not clang?
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
}
|