Skip to content

Releases: shlevy/nix-exec

2.0.3

16 Nov 04:58
Compare
Choose a tag to compare

Minor bugfix

  • Fix fetchgit shared library extension

2.0.2

13 Nov 02:04
Compare
Choose a tag to compare

Minor bugfixes:

  • Don't assume .so as a shared library extension
  • Don't try to mv a non-writable directory

2.0.1

27 Oct 18:26
Compare
Choose a tag to compare

Minor bugfix:

  • Fetchgit: Fetch all heads

2.0.0

24 Oct 21:00
Compare
Choose a tag to compare
  • unsafe-perform-io now just takes an IO value directly, instead of expecting a function matching the top-level entry point signature
  • nix-exec's compile-time settings are now accessible from lib instead of as global symbols
  • nix-exec's lib now has a fetchgit builtin that caches repositories and checkouts. With this, a nix-exec script can now be usefully used without even a nixpkgs checkout in the caller's NIX_PATH.

This contains backwards-incompatible changes, so a major version number bump was required.

1.1.1

18 Oct 03:28
Compare
Choose a tag to compare

Some code duplication between nix-exec and nix was removed.

1.1.0

17 Oct 17:14
Compare
Choose a tag to compare

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.

1.0.0

28 Sep 19:06
Compare
Choose a tag to compare

Initial release!