github ipetkov/crane v0.23.3

2 days ago

0.23.3 - 2026-04-16

Changed

  • downloadCargoPackage now extracts tarballs with --no-same-owner.
    Ultimately this should make no difference since the Nix store will reset all
    ownership permissions anyway, but it may avoid some spurious errors on certain
    systems.
  • buildPackage and buildDepsOnly now has a cargoBuildExtraArgs option for
    passing arguments specifically to cargoBuildCommand.
  • cargoNextest now accepts cargoNextestArchiveExtraArgs for passing
    flags to cargo nextest archive invocations.
  • writeTOML now, by default, refers to writeTOMLViaCraneUtils to minimize
    dependency chains on non-Rust projects. Bringing back the old behavior (using
    remarshal) can be done via craneLibRemarshal = craneLib.overrideScope (final: prev: { writeTOML = final.writeTOMLViaRemarshal; });

Deprecations

  • mkCargoDerivation (and by extension all utilities which delegate to it) no
    longer support overriding the stdenv used for mkDerivation via an
    attribute. Instead any such overrides should be done at the craneLib level
    via the new stdenvSelector function. For example: (crane.mkLib pkgs).overrideScope (final: prev: { stdenvSelector = p: p.clangStdenv; });

Don't miss a new crane release

NewReleases is sending notifications on new releases.