switch-to-configuration-ng: add devshell (#344127)

This commit is contained in:
Jörg Thalheim
2025-01-18 16:49:34 +01:00
committed by GitHub
2 changed files with 10 additions and 0 deletions
@@ -0,0 +1 @@
use nix ../../../.. -A switch-to-configuration-ng
@@ -1,3 +1,12 @@
# switch-to-configuration-ng
This program is a reimplementation of [switch-to-configuration](/nixos/modules/system/activation/switch-to-configuration.pl) in Rust. The goal is to be compatible in as many ways as possible to the original implementation, at least as long as the original is still in nixpkgs. Any behavioral modifications to this program should also be implemented in the original, and vice versa.
## Build in a devshell
```
cd ./pkgs/by-name/sw/switch-to-configuration-ng
nix-shell ../../../.. -A switch-to-configuration-ng
cd ./src
cargo build
```