watchexec: remove Darwin hack in favor of cf-private (#59428)
This commit is contained in:
parent
a846ea54d4
commit
1ceef41c29
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, rustPlatform, fetchFromGitHub, CoreServices, CoreFoundation }:
|
{ stdenv, rustPlatform, fetchFromGitHub, CoreServices, darwin }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
name = "watchexec-${version}";
|
name = "watchexec-${version}";
|
||||||
@ -13,13 +13,11 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoSha256 = "1xlcfr2q2pw47sav9iryjva7w9chv90g18hszq8s0q0w71sccv6j";
|
cargoSha256 = "1xlcfr2q2pw47sav9iryjva7w9chv90g18hszq8s0q0w71sccv6j";
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
|
||||||
|
CoreServices
|
||||||
# FIXME: Use impure version of CoreFoundation because of missing symbols.
|
# This is needed to avoid an undefined symbol error "_CFURLResourceIsReachable"
|
||||||
# Undefined symbols for architecture x86_64: "_CFURLResourceIsReachable"
|
darwin.cf-private
|
||||||
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
|
];
|
||||||
export NIX_LDFLAGS="-F${CoreFoundation}/Library/Frameworks -framework CoreFoundation $NIX_LDFLAGS"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Executes commands in response to file modifications";
|
description = "Executes commands in response to file modifications";
|
||||||
|
@ -6282,7 +6282,7 @@ in
|
|||||||
wal_e = callPackage ../tools/backup/wal-e { };
|
wal_e = callPackage ../tools/backup/wal-e { };
|
||||||
|
|
||||||
watchexec = callPackage ../tools/misc/watchexec {
|
watchexec = callPackage ../tools/misc/watchexec {
|
||||||
inherit (darwin.apple_sdk.frameworks) CoreServices CoreFoundation;
|
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||||
};
|
};
|
||||||
|
|
||||||
watchman = callPackage ../development/tools/watchman {
|
watchman = callPackage ../development/tools/watchman {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user