Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
17 lines
436 B
Bash
17 lines
436 B
Bash
findTarball() {
|
|
local suffix i
|
|
if [ -d "$1/tarballs/" ]; then
|
|
for suffix in tar.gz tgz tar.bz2 tbz2 tbz tar.xz txz tar.lzma; do
|
|
for i in $1/tarballs/*.$suffix; do echo $i; break; done
|
|
done | sort | head -1
|
|
return
|
|
else
|
|
echo "$1"
|
|
return
|
|
fi
|
|
}
|
|
|
|
propagateImageName() {
|
|
mkdir -p $out/nix-support
|
|
cat "$diskImage"/nix-support/full-name > $out/nix-support/full-name
|
|
}
|