Merge changes I5c640824,I09ffc92e,I259583b7 into main
* changes: build: require meson 1.4.0 or newer build: fix deprecated uses of configure_file build: install html manual without using install_subdir
This commit is contained in:
commit
f12b60273b
|
@ -126,20 +126,18 @@ manual = custom_target(
|
||||||
'manual',
|
'manual',
|
||||||
'markdown',
|
'markdown',
|
||||||
],
|
],
|
||||||
|
install_dir : [
|
||||||
|
datadir / 'doc/nix',
|
||||||
|
false,
|
||||||
|
],
|
||||||
depfile : 'manual.d',
|
depfile : 'manual.d',
|
||||||
env : {
|
env : {
|
||||||
'RUST_LOG': 'info',
|
'RUST_LOG': 'info',
|
||||||
'MDBOOK_SUBSTITUTE_SEARCH': meson.current_build_dir() / 'src',
|
'MDBOOK_SUBSTITUTE_SEARCH': meson.current_build_dir() / 'src',
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
manual_html = manual[0]
|
|
||||||
manual_md = manual[1]
|
manual_md = manual[1]
|
||||||
|
|
||||||
install_subdir(
|
|
||||||
manual_html.full_path(),
|
|
||||||
install_dir : datadir / 'doc/nix',
|
|
||||||
)
|
|
||||||
|
|
||||||
nix_nested_manpages = [
|
nix_nested_manpages = [
|
||||||
[ 'nix-env',
|
[ 'nix-env',
|
||||||
[
|
[
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
# in the build directory.
|
# in the build directory.
|
||||||
|
|
||||||
project('lix', 'cpp', 'rust',
|
project('lix', 'cpp', 'rust',
|
||||||
|
meson_version : '>=1.4.0',
|
||||||
version : run_command('bash', '-c', 'echo -n $(jq -r .version < ./version.json)$VERSION_SUFFIX', check : true).stdout().strip(),
|
version : run_command('bash', '-c', 'echo -n $(jq -r .version < ./version.json)$VERSION_SUFFIX', check : true).stdout().strip(),
|
||||||
default_options : [
|
default_options : [
|
||||||
'cpp_std=c++2a',
|
'cpp_std=c++2a',
|
||||||
|
@ -593,10 +594,10 @@ run_command(
|
||||||
)
|
)
|
||||||
|
|
||||||
if is_darwin
|
if is_darwin
|
||||||
configure_file(
|
fs.copyfile(
|
||||||
input : 'misc/launchd/org.nixos.nix-daemon.plist.in',
|
'misc/launchd/org.nixos.nix-daemon.plist.in',
|
||||||
output : 'org.nixos.nix-daemon.plist',
|
'org.nixos.nix-daemon.plist',
|
||||||
copy : true,
|
install : true,
|
||||||
install_dir : prefix / 'Library/LaunchDaemons',
|
install_dir : prefix / 'Library/LaunchDaemons',
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
configure_file(
|
fs.copyfile(
|
||||||
input : 'completion.sh',
|
'completion.sh',
|
||||||
output : 'nix',
|
'nix',
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : datadir / 'bash-completion/completions',
|
install_dir : datadir / 'bash-completion/completions',
|
||||||
install_mode : 'rw-r--r--',
|
install_mode : 'rw-r--r--',
|
||||||
copy : true,
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
configure_file(
|
fs.copyfile(
|
||||||
input : 'completion.fish',
|
'completion.fish',
|
||||||
output : 'nix.fish',
|
'nix.fish',
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : datadir / 'fish/vendor_completions.d',
|
install_dir : datadir / 'fish/vendor_completions.d',
|
||||||
install_mode : 'rw-r--r--',
|
install_mode : 'rw-r--r--',
|
||||||
copy : true,
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,8 +5,4 @@ subdir('zsh')
|
||||||
subdir('systemd')
|
subdir('systemd')
|
||||||
subdir('flake-registry')
|
subdir('flake-registry')
|
||||||
|
|
||||||
runinpty = configure_file(
|
runinpty = fs.copyfile('runinpty.py')
|
||||||
copy : true,
|
|
||||||
input : meson.current_source_dir() / 'runinpty.py',
|
|
||||||
output : 'runinpty.py',
|
|
||||||
)
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
foreach script : [ [ 'completion.zsh', '_nix' ], [ 'run-help-nix' ] ]
|
foreach script : [ [ 'completion.zsh', '_nix' ], [ 'run-help-nix' ] ]
|
||||||
configure_file(
|
fs.copyfile(
|
||||||
input : script[0],
|
script[0],
|
||||||
output : script.get(1, script[0]),
|
script.get(1, script[0]),
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : datadir / 'zsh/site-functions',
|
install_dir : datadir / 'zsh/site-functions',
|
||||||
install_mode : 'rw-r--r--',
|
install_mode : 'rw-r--r--',
|
||||||
copy : true,
|
|
||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
|
@ -8,12 +8,7 @@ configure_file(
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
# https://github.com/mesonbuild/meson/issues/860
|
fs.copyfile('nix-profile.sh.in')
|
||||||
configure_file(
|
|
||||||
input : 'nix-profile.sh.in',
|
|
||||||
output : 'nix-profile.sh.in',
|
|
||||||
copy : true,
|
|
||||||
)
|
|
||||||
|
|
||||||
foreach rc : [ '.sh', '.fish', '-daemon.sh', '-daemon.fish' ]
|
foreach rc : [ '.sh', '.fish', '-daemon.sh', '-daemon.fish' ]
|
||||||
configure_file(
|
configure_file(
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
configure_file(
|
fs.copyfile('unpack-channel.nix')
|
||||||
input : 'unpack-channel.nix',
|
|
||||||
output : 'unpack-channel.nix',
|
|
||||||
copy : true,
|
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in a new issue