add dev flake pattern

This allows us to have dev dependencies which are not propagated to the user.
This commit is contained in:
Jörg Thalheim
2025-07-07 16:08:44 +02:00
committed by Mic92
parent 494226d923
commit 8d3bd6b690
7 changed files with 235 additions and 86 deletions

12
devFlake/update-private-narhash Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Used to update the private dev flake hash reference.
set -euo pipefail
cd "$(dirname "$0")"
echo "Updating $PWD/private.narHash" >&2
nix --extra-experimental-features 'flakes nix-command' flake lock ./private
nix --extra-experimental-features 'flakes nix-command' hash path ./private >./private.narHash
echo OK