This commit is contained in:
atagen 2026-02-25 13:16:02 +11:00
commit 807c3b0094
11 changed files with 533 additions and 0 deletions

21
meson.build Normal file
View file

@ -0,0 +1,21 @@
project('nix-shorturl-plugin', 'cpp',
version : '0.1.0',
default_options : [
'cpp_std=c++23',
'warning_level=2',
],
)
nix_fetchers = dependency('nix-fetchers')
nix_util = dependency('nix-util')
nix_store = dependency('nix-store')
nlohmann_json = dependency('nlohmann_json', version : '>=3.9')
plugin = shared_library('nix-shorturl-plugin',
'src/plugin.cc',
'src/shorturl-scheme.cc',
'src/config.cc',
dependencies : [nix_fetchers, nix_util, nix_store, nlohmann_json],
install : true,
install_dir : get_option('libdir') / 'nix' / 'plugins',
)