split <2.34 code in meson
This commit is contained in:
parent
55c173bd44
commit
7fbcc8744d
3 changed files with 78 additions and 1 deletions
|
|
@ -11,6 +11,13 @@ nix_util = dependency('nix-util')
|
|||
nix_store = dependency('nix-store')
|
||||
nlohmann_json = dependency('nlohmann_json', version : '>=3.9')
|
||||
|
||||
if nix_fetchers.version().version_compare('<2.34')
|
||||
add_project_arguments('-DNIX_PRE_234', language : 'cpp')
|
||||
message('Using pre-2.34 Nix fetcher API (nix-fetchers @ ' + nix_fetchers.version() + ')')
|
||||
else
|
||||
message('Using post-2.34 Nix fetcher API (nix-fetchers @ ' + nix_fetchers.version() + ')')
|
||||
endif
|
||||
|
||||
plugin = shared_library('nix-shorturl-plugin',
|
||||
'src/plugin.cc',
|
||||
'src/shorturl-scheme.cc',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue