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" \