From 519358cad91f83b95af74636432081af98b2f84e Mon Sep 17 00:00:00 2001 From: azban Date: Fri, 20 Mar 2026 19:11:01 -0600 Subject: [PATCH] stratisd: fix build with rust 1.9.2+ This has been fixed upstream and not released, so this patches with commits from https://github.com/stratis-storage/stratisd/pull/3942. --- pkgs/by-name/st/stratisd/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/st/stratisd/package.nix b/pkgs/by-name/st/stratisd/package.nix index b5864a3b4d0e..4f480165801b 100644 --- a/pkgs/by-name/st/stratisd/package.nix +++ b/pkgs/by-name/st/stratisd/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, rustPlatform, cargo, rustc, @@ -44,6 +45,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-zA+GEKmg5iV1PaGh0yjNb4h52PH7PwpN53xLV8P9Gac="; }; + patches = [ + (fetchpatch { + name = "0001-fixes_for_rust_1_9_2"; + url = "https://github.com/stratis-storage/stratisd/commit/d65c3b7a7f9d7a332b4c59089b8fa96ff1fefb45.patch"; + sha256 = "sha256-cNbx9+JgQgyO+o5YX7sLDe64qNWfpDr5itux+LZSgxs="; + }) + ]; + postPatch = '' substituteInPlace udev/61-stratisd.rules \ --replace-fail stratis-base32-decode "$out/lib/udev/stratis-base32-decode" \