this post was submitted on 25 Oct 2023
5 points (100.0% liked)
nixos
46 readers
1 users here now
All about NixOS - https://nixos.org/
founded 4 years ago
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
A huge time saver/helper can be searching the nix discourse. But don't be afraid to ask. You might get grumpy answers but Nix is hard so dont feel bad about it.
The expected approach is to go to the nixpkgs github and post an issue. The issue will ask you to tag the maintainers, which requires looking them up using search.nixos.org or by using the
nix repl
(nixpkgs.yourThing.meta.maintainers
).If you want to update it yourself, you can usually use the nix repl to find out where the relevent code is with
builtins.unsafeGetAttrPos "yourThing" nixpkgs
. Once you know where it is you can fork the nixpkgs github and change it. You can then use/test your fork directly with any of the normal nix commands. Fornix-env
i blelieve itsnix-env -iA something -I url_to_your_github_fork_as_a_tar_file
. There's another flag for using the local folder (instead of a url to a tarball) but I forget what it is.