From ba0feae0144c1e8ef04cfcb7249caf164d983803 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Wed, 13 Nov 2024 12:34:58 -0800 Subject: [PATCH] tdnf: fixup support for rpm >= 4.19 --- pkgs/by-name/td/tdnf/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/td/tdnf/package.nix b/pkgs/by-name/td/tdnf/package.nix index 745f6af0eeee..315b53a8fe2f 100644 --- a/pkgs/by-name/td/tdnf/package.nix +++ b/pkgs/by-name/td/tdnf/package.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch2 , cmake , curl , gpgme @@ -23,6 +24,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-p9g+b7Fqq8V6QSaikEQMMHWqBf4UtRA9a/VtH+s5JUM="; }; + patches = [ + # Support for rpm >= 4.19 + (fetchpatch2 { + url = "https://patch-diff.githubusercontent.com/raw/vmware/tdnf/pull/410.patch"; + hash = "sha256-p/ix5O1J/lj2fw7qJokT+wPN4ROoulnVqByfxgFvuEo="; + }) + ]; + nativeBuildInputs = [ cmake pkg-config