watchman: strip references to folly.fmt.dev

This commit is contained in:
Emily
2024-11-18 17:45:23 +00:00
parent 10dbf1de4b
commit 9a90e1cd80
+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";