about summary refs log tree commit diff
path: root/third_party/nix/src/libexpr/primops.hh
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-07-21T23·34+0000
committerAlyssa Ross <hi@alyssa.is>2020-07-23T04·53+0000
commit855995325e7f8a48a8015d85ee1ad8e8080b5058 (patch)
tree3319b7d538f425e3437cbcc9db05bf88a9f49cf6 /third_party/nix/src/libexpr/primops.hh
parentb1c0866037ea63b670055883de88a9fe4e8891e2 (diff)
feat(3p/nix): remove builtins.importNative r/1424
This is the shared object equivalent of builtins.exec, or a plugins
equivalent accessible from the Nix language.  Either way, since we
don't have builtins.exec or plugins any more, I think it makes sense
to remove this builtin.

This will also allow us to drop the
allow-unsafe-native-code-during-evaluation option, which formerly
controlled whether builtins.exec and builtins.importNative were
enabled.

Cc: Griffin Smith <grfn@gws.fyi>
Cc: Profpatsch <mail@profpatsch.de>
Change-Id: I8993a8a79d559c102647308a2684c089bbc06713
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1340
Reviewed-by: glittershark <grfn@gws.fyi>
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'third_party/nix/src/libexpr/primops.hh')
-rw-r--r--third_party/nix/src/libexpr/primops.hh5
1 files changed, 0 insertions, 5 deletions
diff --git a/third_party/nix/src/libexpr/primops.hh b/third_party/nix/src/libexpr/primops.hh
index 388066f39010..0c9f6ccab1f7 100644
--- a/third_party/nix/src/libexpr/primops.hh
+++ b/third_party/nix/src/libexpr/primops.hh
@@ -14,9 +14,4 @@ struct RegisterPrimOp {
   RegisterPrimOp(const std::string& name, size_t arity, PrimOpFun fun);
 };
 
-/* These primops are disabled without enableNativeCode */
-/* Load a ValueInitializer from a DSO and return whatever it initializes */
-void prim_importNative(EvalState& state, const Pos& pos, Value** args,
-                       Value& v);
-
 }  // namespace nix