2 ms·
How difficult is it to package for Nixpkgs, assuming some familiarity with deb and RPM packaging?
by dsr_ 13y ago
How difficult is it to package for Nixpkgs, assuming some familiarity with deb and RPM packaging?
- iElectric2 13y agoDISCLAIMER: I've written a lot of ebuilds (Gentoo), but only tried Deb a few times. I'd argue it's way easier. Here is an example of packaged nginx https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/http/nginx/default.nix https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/ht... In a nutshell, you need to know the following: - be familiar with basics of Nix language (shouldn't take more than an hour reading that chapter in Nix manual) - be familiar with basics how mkDerivation function works and how are the phases of packaging bound to it (shouldn't take more than a hour reaind that chapter in Nixpkgs manual) - take a simple package you want to try, copy some existing one and modify it to fit the needs Also see https://nixos.org/wiki/Main_Page#Contributing_to_Nix_Projects https://nixos.org/wiki/Main_Page#Contributing_to_Nix_Project...