← home

Updating and developing NixOS packages

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 xfsprogs

Run 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


Hey👋 I'm Andrey. In this blog I post my personal short tutorials or interesting technical notes. Over the day I work as a Software Engineer developing and testing Linux filesystems. I use free software mainly #NixOS #Neovim #Kitty. Btw I use NixOS. Subscribe for updates on:

telegram • @alberand@mas.to • twitter