GitHub - nix-community/nix-init: Generate Nix packages from URLs with hash prefetching, dependency inference, license detection, and more [maintainer=@figsoda]
github.com
external-link
Generate Nix packages from URLs with hash prefetching, dependency inference, license detection, and more [maintainer=@figsoda] - GitHub - nix-community/nix-init: Generate Nix packages from URLs wit...

Announcement on NixOS Discourse

Features

  • Hash prefetching powered by nurl
  • Dependency inference for Rust packages using the Riff registry and python projects
  • Interactive prompts with fuzzy tab completions
  • License detection
  • Supported builders
    • stdenv.mkDerivation
    • buildRustPackage
    • buildPythonApplication and buildPythonPackage
    • buildGoModule
  • Supported fetchers
    • fetchCrate
    • fetchFromGitHub
    • fetchFromGitLab
    • fetchFromGitea
    • fetchPypi
    • All other fetchers supported by nurl are also supported, you just have to specify the tags manually

Usage

Usage: nix-init [OPTIONS] <OUTPUT>

Arguments:
  <OUTPUT>  The path to output the generated file to

Options:
  -u, --url <URL>        Specify the URL
  -c, --config <CONFIG>  Specify the config file
  -h, --help             Print help
  -V, --version          Print version

This might tempt me back from the land of Pop! OS. I had found it pretty painful to create packages, but this looks like it can take out a lot of the boilerplate.

Yuu Yin
link
fedilink
42M

Nice to see you and your project here as well✨✨✨

It is pretty useful! Thanks!

PS: Also worth sharing on !nixos@lemmy.ml

figsoda
creator
link
fedilink
4
edit-2
2M

I have been lurking here for a while now and made my first post for this project

Thanks for the suggestion, crossposted to !nixos: https://lemmy.ml/post/738999

Edit: I didn’t want this to show up on people’s timelines twice since !nixos is a small community, but seems like lemmy handles crossposts perfectly, and I don’t have to worry about that, so I crossposted this to a couple more communities

Yuu Yin
link
fedilink
42M

Yeah Lemmy is pretty good on that and overall as well. I wish more people would move from the popular proprietary/centralized forums alike to here. Maybe it just needs more word of mouth…

Create a post

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

  • Posts must be relevant to the open source ideology
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

  • 0 users online
  • 1 user / day
  • 10 users / week
  • 34 users / month
  • 90 users / 6 months
  • 1 subscriber
  • 89 Posts
  • 98 Comments
  • Modlog