mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
41 lines
902 B
Nix
41 lines
902 B
Nix
{ lib
|
|
, addDriverRunpath
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, intel-compute-runtime
|
|
, openvino
|
|
, stdenv
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "level-zero";
|
|
version = "1.18.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oneapi-src";
|
|
repo = "level-zero";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ep9RYHnqmOEqfdFtYzOZnv0aWu4TA8JMyWOj0E2uSYk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake addDriverRunpath ];
|
|
|
|
postFixup = ''
|
|
addDriverRunpath $out/lib/libze_loader.so
|
|
'';
|
|
|
|
passthru.tests = {
|
|
inherit intel-compute-runtime openvino;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "oneAPI Level Zero Specification Headers and Loader";
|
|
homepage = "https://github.com/oneapi-src/level-zero";
|
|
changelog = "https://github.com/oneapi-src/level-zero/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.ziguana ];
|
|
};
|
|
}
|
|
|