about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkirillrdy <kirillrdy@gmail.com>2024-03-16 16:44:16 +1100
committerGitHub <noreply@github.com>2024-03-16 16:44:16 +1100
commit2001da404ece461898e01a42b6a227466beb0b21 (patch)
treeb9aba6dd22c522452fc80025c3749b2630918e63
parent01bf867765de13dd87af16b207819da8b315aa68 (diff)
parent4bcb6ee177180aabc38112cf641f9a314d8ec0d4 (diff)
Merge pull request #295103 from evils/rasdaemon
rasdaemon: fix AMD segfault
-rw-r--r--pkgs/os-specific/linux/rasdaemon/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/rasdaemon/default.nix b/pkgs/os-specific/linux/rasdaemon/default.nix
index c65a11fe85251..35478732fb8cc 100644
--- a/pkgs/os-specific/linux/rasdaemon/default.nix
+++ b/pkgs/os-specific/linux/rasdaemon/default.nix
@@ -2,6 +2,7 @@
 , autoreconfHook, pkg-config
 , glibcLocales, kmod, coreutils, perl
 , dmidecode, hwdata, sqlite, libtraceevent
+, fetchpatch
 , nixosTests
 }:
 
@@ -16,6 +17,14 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-BX3kc629FOh5cnD6Sa/69wKdhmhT3Rpz5ZvhnD4MclQ=";
   };
 
+  patches = [
+    (fetchpatch { # fix #295002 (segfault on AMD), will be in the release after 0.8.0
+      name = "fix crash on AMD";
+      url = "https://github.com/mchehab/rasdaemon/commit/f1ea76375281001cdf4a048c1a4a24d86c6fbe48.patch";
+      hash = "sha256-1VPDTrAsvZGiGbh52EUdG6tYV/n6wUS0mphOSXzran0=";
+    })
+  ];
+
   nativeBuildInputs = [ autoreconfHook pkg-config ];
 
   buildInputs = [