2024-05-28 16:43:04 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-10-18 14:42:06 +00:00
|
|
|
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 ]]
|