diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/isa-l')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/isa-l/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/isa-l/default.nix b/nixpkgs/pkgs/development/libraries/isa-l/default.nix new file mode 100644 index 000000000000..a8b0afa41d21 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/isa-l/default.nix @@ -0,0 +1,28 @@ +{ lib, stdenv, fetchFromGitHub, autoreconfHook, nasm }: + +stdenv.mkDerivation rec { + pname = "isa-l"; + version = "2.30.0"; + + src = fetchFromGitHub { + owner = "intel"; + repo = "isa-l"; + rev = "v${version}"; + sha256 = "sha256-AAuSdDQfDW4QFRu0jHwCZ+ZCSjoVqlQiSW1OOFye1Rs="; + }; + + nativeBuildInputs = [ nasm autoreconfHook ]; + + preConfigure = '' + export AS=nasm + ''; + + meta = with lib; { + description = "A collection of optimised low-level functions targeting storage applications"; + license = licenses.bsd3; + homepage = "https://github.com/intel/isa-l"; + maintainers = with maintainers; [ jbedo ]; + platforms = platforms.all; + broken = stdenv.isDarwin && stdenv.isAarch64; # does not build on M1 mac (asm/hwcap.h file not found) maybe needs gcc not clang? + }; +} |