mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 10:16:15 +02:00
10f864c5ae
This is good for shebang, and also good for future build system simplifications
12 lines
229 B
Bash
Executable file
12 lines
229 B
Bash
Executable file
#!/usr/bin/env 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 ]]
|