mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
59e0728714
Also refine `nix derivation show`'s docs very slightly.
12 lines
374 B
Bash
12 lines
374 B
Bash
source common.sh
|
|
|
|
drvPath=$(nix-instantiate simple.nix)
|
|
|
|
nix derivation show $drvPath | jq .[] > $TEST_HOME/simple.json
|
|
|
|
drvPath2=$(nix derivation add < $TEST_HOME/simple.json)
|
|
|
|
[[ "$drvPath" = "$drvPath2" ]]
|
|
|
|
# Input addressed derivations cannot be renamed.
|
|
jq '.name = "foo"' < $TEST_HOME/simple.json | expectStderr 1 nix derivation add | grepQuiet "has incorrect output"
|