1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-02 17:41:48 +02:00

Move call-flake.nix to nix-flake

As suggested by Ericson2314 in review
https://github.com/NixOS/nix/pull/12759#issuecomment-2755352343
This commit is contained in:
Robert Hensing 2025-03-26 20:02:06 +00:00
parent 6fc9651d57
commit 0c75581d8b
7 changed files with 34 additions and 10 deletions

View file

@ -39,6 +39,15 @@ add_project_arguments(
subdir('nix-meson-build-support/common')
subdir('nix-meson-build-support/generate-header')
generated_headers = []
foreach header : [
'call-flake.nix',
]
generated_headers += gen_header.process(header)
endforeach
sources = files(
'flake/config.cc',
'flake/flake.cc',
@ -62,6 +71,7 @@ headers = files(
this_library = library(
'nixflake',
sources,
generated_headers,
dependencies : deps_public + deps_private + deps_other,
prelink : true, # For C++ static initializers
install : true,