From a8dfd8fdac5eef9bd5dd04bdd343de2331231c27 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Wed, 30 Mar 2022 18:18:23 +0800 Subject: [PATCH] entangle: fix build with meson 0.61 --- pkgs/applications/video/entangle/default.nix | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/video/entangle/default.nix b/pkgs/applications/video/entangle/default.nix index 2c7563380895..761a3849c315 100644 --- a/pkgs/applications/video/entangle/default.nix +++ b/pkgs/applications/video/entangle/default.nix @@ -1,7 +1,8 @@ { lib , stdenv , fetchFromGitLab -, cmake +, fetchpatch +, itstool , libxml2 , meson , ninja @@ -49,10 +50,19 @@ stdenv.mkDerivation rec { sha256 = "hz2WSDOjriQSavFlDT+35x1X5MeInq80ZrSP1WR/td0="; }; + patches = [ + # Fix build with meson 0.61, can be removed on next update + # https://gitlab.com/entangle/entangle/-/issues/67 + (fetchpatch { + url = "https://gitlab.com/entangle/entangle/-/commit/54795d275a93e94331a614c8712740fcedbdd4f0.patch"; + sha256 = "iEgqGjKa0xwSdctwvNdEV361l9nx+bz53xn3fuDgtzY="; + }) + ]; + nativeBuildInputs = [ - cmake - glib.dev - libxml2.bin # for xmllint + itstool + glib + libxml2 # for xmllint meson ninja perl # for pod2man and build scripts @@ -93,8 +103,6 @@ stdenv.mkDerivation rec { libXtst ]); - dontUseCmakeConfigure = true; - # Disable building of doc/reference since it requires network connection to render XML to HTML # Patch build script shebangs postPatch = ''