a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
27 lines
642 B
Nix
27 lines
642 B
Nix
{ lib, stdenv, fetchFromGitHub, addOpenGLRunpath, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "level-zero";
|
|
version = "1.9.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oneapi-src";
|
|
repo = "level-zero";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-4AQnMMKo4BvajfhhKmhTZA0snKPnO4WjOuZAeiWU5PY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake addOpenGLRunpath ];
|
|
|
|
postFixup = ''
|
|
addOpenGLRunpath $out/lib/libze_loader.so
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.oneapi.io/";
|
|
description = "oneAPI Level Zero Specification Headers and Loader";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.ziguana ];
|
|
};
|
|
}
|
|
|