Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.03 KB

File metadata and controls

44 lines (34 loc) · 1.03 KB

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 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