watchman: strip references to folly.fmt.dev

(cherry picked from commit 9a90e1cd80)
(cherry picked from commit 56788e08aa9ef05fef73ea331555ed7177b00b33)
This commit is contained in:
Emily
2024-11-30 15:11:36 +01:00
committed by Vladimír Čunát
parent d24cff2abd
commit 0897361047
+7
View File
@@ -12,6 +12,7 @@
cargo,
rustPlatform,
ensureNewerSourcesForZipFilesHook,
removeReferencesTo,
pcre2,
openssl,
@@ -52,6 +53,7 @@ stdenv.mkDerivation (finalAttrs: {
cargo
rustPlatform.cargoSetupHook
ensureNewerSourcesForZipFilesHook
removeReferencesTo
];
buildInputs =
@@ -98,6 +100,11 @@ stdenv.mkDerivation (finalAttrs: {
cp ${./Cargo.lock} ${finalAttrs.cargoRoot}/Cargo.lock
'';
postFixup = ''
# TODO: Do this in `fmt` rather than downstream.
remove-references-to -t ${folly.fmt.dev} $out/bin/*
'';
meta = {
description = "Watches files and takes action when they change";
homepage = "https://facebook.github.io/watchman";