Skip Navigation
nixos @lemmy.ml figsoda @lemmy.ml

nix-init v0.2.0 released, generate Nix packages from URLs with hash prefetching, dependency inference, license detection, and more

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

nix-init v0.2.0 has been released with a newly published crate and a new demo GIF Features Rust: support importCargoLock Rust: improve dependency inference, it now sets environment variables and is feature-aware Prompt for output path when it is unspecified Go: infer ldflags from GoReleaser conf...

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

GitHub Repository: https://github.com/nix-community/nix-init

Features

  • Rust: support importCargoLock
  • Rust: improve dependency inference, it now sets environment variables and is feature-aware
  • Prompt for output path when it is unspecified
  • Go: infer ldflags from GoReleaser configuration
  • Python: recognize maturinBuildHook
  • Improve builder completions and validator
  • Improve description normalization
  • Improve version inference

Changes

  • Python: update buildPythonPackage's style to be more conventional
  • Disallow empty urls
  • Normalize pname

Fixes

  • PyPI: support optional dependencies (#34)
  • PyPI: support zip sdists (#33)
  • PyPI: don't strip digits from package names (#35)
  • PyPI: handle normalized sdist file names (#32)
  • PyPI: accept packages without licenses (#32)
  • PyPI: filter out non-sdist versions
  • Go: detect empty vendor from go.sum instead of FOD hash
0
0 comments