6
submitted 10 months ago by rutrum@lm.paradisus.day to c/nixos@infosec.pub

Every now and then I see a program that doesn't have a default.nix or flake.nix in the source, doesn't have an entry in nixpkgs, and otherwise can't find a derivation for. So I write them myself.

What's the best way to share these? Should I contribute to nixpkgs? (does this count if I'm making flakes?) Do I maintain a single repo for each program? Or do I create a repo with a collection of flakes? Something else?

top 7 comments
sorted by: hot top controversial new old
[-] silver@lemmy.brendan.ie 5 points 10 months ago

Maybe try submitting patches to the source project or nixpkgs?

[-] rutrum@lm.paradisus.day 1 points 9 months ago

I've thought about submitting to the source but I imagine that dumping two files in the root directory for a build tool that the devs don't use or even know about is a hard PR to get merged. But maybe that's not even the optimal way to distribute flakes, and it ought to be in a different place altogether, like nixpkgs or flakehub.

[-] thedeadwalking4242@lemmy.world 2 points 9 months ago

Well it's just two files, and it doesn't touch anything else. I think they might welcome it more than you think

[-] pol@infosec.pub 4 points 10 months ago
[-] rutrum@lm.paradisus.day 1 points 9 months ago

I'm only just now looking at publishing on flakehub. It does look like many users can point at individual repositories that just package external software. It looks like this encourages a repository for each application. Thanks for suggesting.

[-] Cyberflunk@lemmy.world 3 points 10 months ago

Couldn't you just publish to a git repo?

nix run github:your-username/your-repo
[-] rutrum@lm.paradisus.day 1 points 9 months ago

This is certainly an option, just wondering whats done most in practice. Right now this is what my own flakes do.

this post was submitted on 08 Sep 2023
6 points (100.0% liked)

NixOS

753 readers
1 users here now

NixOS is a Linux distribution built on top of the Nix package manager. Its declarative configuration allows reliable system upgrades via several official channels of stability and size.

This community discusses NixOS, Nix, and everything related.

founded 1 year ago
MODERATORS