Title: Updating and developing NixOS packages Date: 13.01.2025 Modified: 13.01.2025 Status: published Tags: NixOS, package, nix Keywords: NixOS, package, nix Slug: updating-nixos-packages Author: Andrey Albershtein Summary: Short guide on developing and updating NixOS packages in nixpkgs repository Lang: en
Useful links:
First of all create your environment
$ git clone git@github.com:NixOS/nixpkgs.git
$ cd nixpkgs
$ git checkout -b update-package
$ export NIXPKGS=$(pwd)Build a packages
$ nix-build $NIXPKGS -k -A xfsprogsRun shell with your new updated packages and play around with it to make sure it works:
$ nix-shell -I nixpkgs=$NIXPKGS -p xfsprogs
...
$ mkfs.xfs -V
mkfs.xfs version 6.12.0