This commit is contained in:
atagen 2026-02-25 12:18:18 +11:00
commit 0e5218513e
4 changed files with 128 additions and 0 deletions

11
CMakeLists.txt Normal file
View file

@ -0,0 +1,11 @@
cmake_minimum_required(VERSION 3.9)
project(nix-scope-plugin)
find_package(PkgConfig REQUIRED)
pkg_check_modules(NIX_EXPR REQUIRED IMPORTED_TARGET nix-expr)
add_library(nix-scope-plugin MODULE scope.cc)
target_link_libraries(nix-scope-plugin PkgConfig::NIX_EXPR)
set_target_properties(nix-scope-plugin PROPERTIES PREFIX "lib")
install(TARGETS nix-scope-plugin DESTINATION lib/nix/plugins)