Merge pull request #256082 from paveloom/gr-framework

gr-framework: 0.72.9 -> 0.72.10 + refactor
This commit is contained in:
Weijia Wang 2023-09-23 02:31:30 +02:00 committed by GitHub
commit f07229e03a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 7 deletions

View File

@ -0,0 +1,25 @@
From 5d2377ad5e99742662e056bb782d5c21afb01dfb Mon Sep 17 00:00:00 2001
From: Pavel Sobolev <paveloom@riseup.net>
Date: Tue, 19 Sep 2023 13:27:39 +0300
Subject: [PATCH] Use the module mode to search for the `LibXml2` package.
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 03490335..fb69e8fd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,7 +96,7 @@ find_package(Expat)
# CMake ships with a `FindLibXml2.cmake` module which does not configure needed libxml2 dependencies.
# Thus, use the `libxml2-config.cmake` config file shipped with libxml which configures dependencies correctly by
# skipping module search mode.
-find_package(LibXml2 NO_MODULE)
+find_package(LibXml2 MODULE)
if(${CMAKE_VERSION} VERSION_GREATER "3.16.0")
find_package(
Qt6
--
2.42.0

View File

@ -1,17 +1,18 @@
{ cairo { lib
, cmake , stdenv
, fetchFromGitHub , fetchFromGitHub
, nix-update-script
, cairo
, cmake
, ffmpeg , ffmpeg
, freetype , freetype
, ghostscript , ghostscript
, glfw , glfw
, lib
, libjpeg , libjpeg
, libtiff , libtiff
, nix-update-script
, qhull , qhull
, qtbase , qtbase
, stdenv
, wrapQtAppsHook , wrapQtAppsHook
, xorg , xorg
, zeromq , zeromq
@ -19,15 +20,19 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gr-framework"; pname = "gr-framework";
version = "0.72.9"; version = "0.72.10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sciapp"; owner = "sciapp";
repo = "gr"; repo = "gr";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-4rOcrMn0sxTeRQqiQMAWULzUV39i6J96Mb096Lyblns="; hash = "sha256-ZFaun8PBtPTmhZ0+OHzUu27NvcJGxsImh+c7ZvCTNa0=";
}; };
patches = [
./Use-the-module-mode-to-search-for-the-LibXml2-package.patch
];
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
wrapQtAppsHook wrapQtAppsHook