From 22106211d07a9febf179ea108e52465ef10e6785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 24 Sep 2024 06:58:15 +0200 Subject: [PATCH] switch-to-configuration-ng: add devshell --- pkgs/by-name/sw/switch-to-configuration-ng/.envrc | 1 + pkgs/by-name/sw/switch-to-configuration-ng/README.md | 9 +++++++++ pkgs/by-name/sw/switch-to-configuration-ng/shell.nix | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 pkgs/by-name/sw/switch-to-configuration-ng/.envrc create mode 100644 pkgs/by-name/sw/switch-to-configuration-ng/shell.nix diff --git a/pkgs/by-name/sw/switch-to-configuration-ng/.envrc b/pkgs/by-name/sw/switch-to-configuration-ng/.envrc new file mode 100644 index 0000000000000..1d953f4bd7359 --- /dev/null +++ b/pkgs/by-name/sw/switch-to-configuration-ng/.envrc @@ -0,0 +1 @@ +use nix diff --git a/pkgs/by-name/sw/switch-to-configuration-ng/README.md b/pkgs/by-name/sw/switch-to-configuration-ng/README.md index 8230b47c9651d..9793c1d4c5f49 100644 --- a/pkgs/by-name/sw/switch-to-configuration-ng/README.md +++ b/pkgs/by-name/sw/switch-to-configuration-ng/README.md @@ -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 +cd ./src +cargo build +``` diff --git a/pkgs/by-name/sw/switch-to-configuration-ng/shell.nix b/pkgs/by-name/sw/switch-to-configuration-ng/shell.nix new file mode 100644 index 0000000000000..cb104fe2bb984 --- /dev/null +++ b/pkgs/by-name/sw/switch-to-configuration-ng/shell.nix @@ -0,0 +1,4 @@ +{ + pkgs ? import ../../../.. { }, +}: +pkgs.switch-to-configuration-ng