0.13.0
The usual internal version updates but there is more!
Documentation as Github Page
The old README.md had become very long and hard to navigate.
Check out the new and shiny page at https://nix-community.github.io/crate2nix/!
- Create new Github Page. @kolloch
- Move most of the old content there. @kolloch
Export tools
as flake attribute
Do you like to use import from derivation
so that you do not have to regenerate Cargo.nix
on every dependency change?
The related convenience functions are now also available via the flake attribute "tools":
# ...
perSystem = { system, pkgs, lib, inputs', ... }:
let
cargoNix = inputs.crate2nix.tools.${system}.appliedCargoNix {
name = "rustnix";
src = ./.;
};
in
rec {
packages.default = cargoNix.rootCrate.build;
};
# ...
Check out the documentation.
Flakify the crate2nix build itself
Convert the pre-flake infrastructure step-by step to nix flakes,
while attempting to preserve compatibility for non-flake users.
This is more of an internal change and should not affect the usage of crate2nix yet but a more
flake friendly interface is planned.
- Convert flake.nix to flake.parts. @kolloch
- Use devshell for devShell. @kolloch
- Provide
shell.nix
via flake-compat. @kolloch - Provide an "old-school"
pkgs.callPackage
-compatibledefault.nix
for thecrate2nix
binary. @kolloch
Tests and some utilities are still working flake-less but use the flake inputs by default.