stratisd: fix build with rust 1.9.2+ (#501814)
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user