From 624f44bf25902beaf5599bf031ef3610820b1f6a Mon Sep 17 00:00:00 2001 From: Olivia Crain Date: Thu, 26 Sep 2024 14:28:25 -0500 Subject: build: fix deprecated uses of configure_file Using `configure_file` to copy files has been deprecated since Meson 0.64.0. The intended replacement is the `fs.copyfile` method. This removes the following deprecation warning that arises when a minimum Meson version is specified: `` Project [...] uses feature deprecated since '0.64.0': copy arg in configure_file. Use fs.copyfile instead `` Change-Id: I09ffc92e96311ef9ed594343a0a16d51e74b114a --- meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index f89f5a016..53ce6a348 100644 --- a/meson.build +++ b/meson.build @@ -593,10 +593,10 @@ run_command( ) if is_darwin - configure_file( - input : 'misc/launchd/org.nixos.nix-daemon.plist.in', - output : 'org.nixos.nix-daemon.plist', - copy : true, + fs.copyfile( + 'misc/launchd/org.nixos.nix-daemon.plist.in', + 'org.nixos.nix-daemon.plist', + install : true, install_dir : prefix / 'Library/LaunchDaemons', ) endif -- cgit v1.2.3