Nix-init - Generate Nix packages from URLs with hash prefetching, dependency inference, license detection, and more

Just released nix-init 0.3.3! Here is the full list of changes:

Changes

  • Use finalAttrs pattern instead of rec
  • Drop compatibility with nurl < 0.4

Features

  • Rust: fetchCargoVendor support
  • Headless mode
  • stdenvNoCC.mkDerivation support
  • Automatically format with nixfmt if it’s found
  • Better license detection
  • Rust: emit LIBGIT2_NO_VENDOR when needed
  • Improve error messages

Fixes

  • Remove legacy darwin sdk
  • Go: drop -w from default ldflags
  • Prefix unstable versions with 0-
  • fetchCrate now works correctly
  • GitHub: sort tags
  • Python: fully remove outdated behavior of adding wheel to dependencies
  • Normalize homepage URLs
  • More consistency with nixfmt formatting
9 Likes

just released v0.3.4 that fixes a crash that happens with github repositories

Changes

  • Rust: demote importCargoLock when suggesting builders

Features

  • Rust: improve dependency inference for a few crates

Fixes

  • GitHub: fix crash caused by non-total comparison of tags
  • Headless: convert pname to kebab case
  • Zig: use zig directly instead of zig.hook

Chores

  • Flake: remove dependency on the nurl flake
7 Likes

just released nix-init 0.3.5, thank you @KiaraGrouwstra and @eclairevoyant for your contributions!

Changes

  • Set __structuredAttrs
  • Set strictDeps when needed

Features

  • Set passthru.updateScript for supported fetchers
  • Use release page as a fallback for changelogs
  • Commit: Add assisted-by trailer
  • Rust: force libsqlite3-sys to use pkg-config when needed

Fixes

  • Use wrapGAppsHook3 instead of wrapGAppsHook
8 Likes