From 972ffeccf531af0017aff7b20b5a88d28611ef47 Mon Sep 17 00:00:00 2001 From: n0099 Date: Wed, 10 Jun 2026 05:39:29 +0000 Subject: [PATCH 1/2] libtpms: fix building with `-march=x86-64-v4` fix #528643 https://github.com/stefanberger/libtpms/pull/588 --- pkgs/by-name/li/libtpms/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/li/libtpms/package.nix b/pkgs/by-name/li/libtpms/package.nix index caecbaaaacc9..bd26f5b5639d 100644 --- a/pkgs/by-name/li/libtpms/package.nix +++ b/pkgs/by-name/li/libtpms/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch2, pkg-config, autoreconfHook, openssl, @@ -19,6 +20,13 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-wCipOOr3LnLq1NqDtxw6hq0VTyniDwp18vBxyET/WGM="; }; + patches = [ + (fetchpatch2 { + url = "https://github.com/stefanberger/libtpms/pull/588.patch?full_index=1"; + hash = "sha256-MVHy0sdg8ywKzu9M4ueRjH786uXQK8al21k8f+mAdR0="; + }) + ]; + nativeBuildInputs = [ autoreconfHook pkg-config From d1215feef7546678557856166b0601dd9e7d2ad3 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Thu, 11 Jun 2026 10:04:11 -0700 Subject: [PATCH 2/2] libtpms: bump commit id from PR to the one that merged master --- pkgs/by-name/li/libtpms/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/li/libtpms/package.nix b/pkgs/by-name/li/libtpms/package.nix index bd26f5b5639d..d0b6a1f2e0a2 100644 --- a/pkgs/by-name/li/libtpms/package.nix +++ b/pkgs/by-name/li/libtpms/package.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation (finalAttrs: { patches = [ (fetchpatch2 { - url = "https://github.com/stefanberger/libtpms/pull/588.patch?full_index=1"; + url = "https://github.com/stefanberger/libtpms/commit/2d9b00c4e42677cd0a9b67344f4d873ddc409a21.patch?full_index=1"; hash = "sha256-MVHy0sdg8ywKzu9M4ueRjH786uXQK8al21k8f+mAdR0="; }) ];