From f1ab18f3b8947d897edcc8d0184af1a68a3c927f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 26 May 2024 21:49:28 +0200 Subject: [PATCH] level-zero: 1.17.2 -> 1.17.6 Changelog: https://github.com/oneapi-src/level-zero/releases/tag/v1.17.6 --- .../libraries/level-zero/default.nix | 16 +---- .../libraries/level-zero/system-spdlog.diff | 66 ------------------- 2 files changed, 2 insertions(+), 80 deletions(-) delete mode 100644 pkgs/development/libraries/level-zero/system-spdlog.diff diff --git a/pkgs/development/libraries/level-zero/default.nix b/pkgs/development/libraries/level-zero/default.nix index c59822a32308..db99f73cd796 100644 --- a/pkgs/development/libraries/level-zero/default.nix +++ b/pkgs/development/libraries/level-zero/default.nix @@ -2,36 +2,24 @@ , addOpenGLRunpath , cmake , fetchFromGitHub -, fmt_9 , intel-compute-runtime , openvino -, spdlog , stdenv -, substituteAll }: stdenv.mkDerivation rec { pname = "level-zero"; - version = "1.17.2"; + version = "1.17.6"; src = fetchFromGitHub { owner = "oneapi-src"; repo = "level-zero"; rev = "refs/tags/v${version}"; - hash = "sha256-ha/xpp+scLau+cTIyixwo8TgAJrb2DVboGDPWibxb08="; + hash = "sha256-vtijha0nXHEp5oLnmdtbD80Qa2dgMykZXhQ2yfbk+mY="; }; - patches = [ - (substituteAll { - src = ./system-spdlog.diff; - spdlog = lib.getDev spdlog; - }) - ]; - nativeBuildInputs = [ cmake addOpenGLRunpath ]; - buildInputs = [ fmt_9 ]; - postFixup = '' addOpenGLRunpath $out/lib/libze_loader.so ''; diff --git a/pkgs/development/libraries/level-zero/system-spdlog.diff b/pkgs/development/libraries/level-zero/system-spdlog.diff deleted file mode 100644 index dee5432d0f7f..000000000000 --- a/pkgs/development/libraries/level-zero/system-spdlog.diff +++ /dev/null @@ -1,66 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 5e4af80..a54eecb 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -1,6 +1,9 @@ - # Copyright (C) 2020-2024 Intel Corporation - # SPDX-License-Identifier: MIT - -+add_compile_definitions(SPDLOG_FMT_EXTERNAL) -+add_compile_definitions(FMT_HEADER_ONLY) -+ - cmake_minimum_required(VERSION 3.2.0 FATAL_ERROR) - set(CMAKE_CXX_STANDARD 14) - set(CMAKE_CXX_STANDARD_REQUIRED ON) -@@ -58,7 +60,7 @@ elseif(Git_FOUND) - endif() - - include(FetchContent) --set(SPDLOG_ROOT "${FETCHCONTENT_BASE_DIR}/spdlog-src") -+set(SPDLOG_ROOT "@spdlog@") - - # Update other relevant variables to include the patch - set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}") -diff --git a/source/utils/CMakeLists.txt b/source/utils/CMakeLists.txt -index cb6cfb1..599338a 100644 ---- a/source/utils/CMakeLists.txt -+++ b/source/utils/CMakeLists.txt -@@ -1,16 +1,6 @@ - # Copyright (C) 2024 Intel Corporation - # SPDX-License-Identifier: MIT - --include(FetchContent) --set(SPDLOG_REPO https://github.com/gabime/spdlog) --set(SPDLOG_TAG v1.13.0) --FetchContent_Declare( -- spdlog -- GIT_REPOSITORY ${SPDLOG_REPO} -- GIT_TAG ${SPDLOG_TAG} --) --FetchContent_makeAvailable(spdlog) -- - add_library(utils - STATIC - "logging.h" -@@ -19,5 +9,5 @@ add_library(utils - - target_include_directories(utils - PUBLIC -- ${FETCHCONTENT_BASE_DIR}/spdlog-src/include -+ @spdlog@/include - ) -diff --git a/source/utils/logging.h b/source/utils/logging.h -index 4aad451..c8c4cc3 100644 ---- a/source/utils/logging.h -+++ b/source/utils/logging.h -@@ -16,8 +16,8 @@ - #include - #include - --#include "spdlog/sinks/basic_file_sink.h" --#include "spdlog/spdlog.h" -+#include -+#include - - namespace loader { -