sdrangel: fix build on x86_64-darwin
[NixPkgs.git] / pkgs / build-support / release / functions.sh
blob0c4b81edf822e5e7328cf028ec0f1119ef4f63e4
1 findTarball() {
2 local suffix i
3 if [ -d "$1/tarballs/" ]; then
4 for suffix in tar.gz tgz tar.bz2 tbz2 tbz tar.xz txz tar.lzma; do
5 for i in $1/tarballs/*.$suffix; do echo $i; break; done
6 done | sort | head -1
7 return
8 else
9 echo "$1"
10 return
14 propagateImageName() {
15 mkdir -p $out/nix-support
16 cat "$diskImage"/nix-support/full-name > $out/nix-support/full-name