Releases: shlevy/nix-exec
2.0.3
2.0.2
2.0.1
2.0.0
unsafe-perform-io
now just takes anIO
value directly, instead of expecting a function matching the top-level entry point signaturenix-exec
's compile-time settings are now accessible fromlib
instead of as global symbolsnix-exec
's lib now has afetchgit
builtin that caches repositories and checkouts. With this, anix-exec
script can now be usefully used without even anixpkgs
checkout in the caller'sNIX_PATH
.
This contains backwards-incompatible changes, so a major version number bump was required.
1.1.1
1.1.0
This release adds unsafe-perform-io.nix
. Quoting from the README
:
For cases where the expression author doesn't completely control the invocation
of the evaluator (e.g. nixops
has no way to specify that it should run
nix-exec
), nix-exec
installs unsafe-perform-io.nix
in $(datadir)/nix
.
This evaluates to a function which takes an argument list and a function
meeting the requirements of Expression entry point
above, calls the function
with lib
and the passed-in argument list, runs the resultant IO value, and
returns its result. This uses builtins.importNative
under the hood, so it
requires the allow-unsafe-native-code-during-evaluation
nix option to be set
to true.
Note that when using unsafe-perform-io.nix
, nixexec_argc
will be 0
and
nixexec_argv
will be NULL
unless called within an actual nix-exec
invocation.