From 88cd2d41acb994684a3e4ead1b1676019f43b4b6 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Thu, 8 Feb 2018 11:26:18 -0500 Subject: 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. --- tests/plugins.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/plugins.sh (limited to 'tests/plugins.sh') diff --git a/tests/plugins.sh b/tests/plugins.sh new file mode 100644 index 000000000000..6d18d1da0d18 --- /dev/null +++ b/tests/plugins.sh @@ -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" ] -- cgit 1.4.1