1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 15:13:55 +02:00

More interesting dynamic derivations example

Co-authored-by: Samuel Ainsworth <skainsworth@gmail.com>
This commit is contained in:
John Ericson 2025-02-05 17:22:56 -05:00
parent 07f853b295
commit 222a57c9ca
3 changed files with 94 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
source common.sh
# Store layer needs bugfix
requireDaemonNewerThan "2.27pre20250205"
TODO_NixOS # can't enable a sandbox feature easily
enableFeatures 'recursive-nix'
restartDaemon
NIX_BIN_DIR="$(dirname "$(type -p nix)")"
export NIX_BIN_DIR
nix build -L --file ./non-trivial.nix