mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Add plugins to make Nix more extensible.
All plugins in plugin-files will be dlopened, allowing them to statically construct instances of the various Register* types Nix supports.
This commit is contained in:
parent
f201b7733e
commit
88cd2d41ac
24 changed files with 122 additions and 3 deletions
7
tests/plugins.sh
Normal file
7
tests/plugins.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
source common.sh
|
||||
|
||||
set -o pipefail
|
||||
|
||||
res=$(nix eval '(builtins.constNull true)' --option plugin-files $PWD/plugins/plugintest.so)
|
||||
|
||||
[ "$res"x = "nullx" ]
|
Loading…
Add table
Add a link
Reference in a new issue