mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-24 06:56:14 +02:00
61f89e954a
This exposes the Store::queryPathFromHashPart() interface in the CLI.
10 lines
208 B
Bash
10 lines
208 B
Bash
source common.sh
|
|
|
|
path=$(nix build --no-link --print-out-paths -f simple.nix)
|
|
|
|
hash_part=$(basename $path)
|
|
hash_part=${hash_part:0:32}
|
|
|
|
path2=$(nix store path-from-hash-part $hash_part)
|
|
|
|
[[ $path = $path2 ]]
|