below: replace vendored patch with an upstream commit

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
This commit is contained in:
Fernando Rodrigues
2025-03-24 23:59:55 +05:30
committed by Masum Reza
parent c63de0f864
commit d19e76a70f
2 changed files with 9 additions and 3082 deletions
+9 -3
View File
@@ -1,6 +1,7 @@
{
lib,
fetchFromGitHub,
fetchpatch,
rustPlatform,
clang,
pkg-config,
@@ -20,11 +21,16 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-tPweJFqhZMOL+M08bDjW6HPmtuhr9IXJNP0c938O7Cg=";
};
# Upstream forgot to commit an up-to-date lockfile.
cargoPatches = [ ./update-Cargo.lock.patch ];
cargoPatches = [
(fetchpatch {
name = "update-Cargo.lock.patch";
url = "https://github.com/facebookincubator/below/commit/f46f9936ac29fa23f5cb02cafe93ae724649bafc.patch";
hash = "sha256-J+M8FIuo8ToT3+9eZi5qfwfAW98XcNRqTIJd6O8z1Ig=";
})
];
useFetchCargoVendor = true;
cargoHash = "sha256-uNeWdsvJtkUz3E1NL10heDC7B55yKzDMMYzRhEE32EQ=";
cargoHash = "sha256-JrSSIwREHSg5YJivSdBIPjOkOtdw8qGCsa4yE7rJz/E=";
prePatch = ''
sed -i "s,ExecStart=.*/bin,ExecStart=$out/bin," etc/below.service
File diff suppressed because it is too large Load Diff