mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
15 lines
353 B
Bash
15 lines
353 B
Bash
|
findTarballs() {
|
||
|
local suffix
|
||
|
test -d "$1/tarballs/" && {
|
||
|
for suffix in tar.gz tgz tar.bz2 tbz2 tar.xz tar.lzma; do
|
||
|
ls $1/tarballs/*.$suffix 2> /dev/null
|
||
|
done | sort
|
||
|
}
|
||
|
echo "$1"
|
||
|
}
|
||
|
|
||
|
propagateImageName() {
|
||
|
ensureDir $out/nix-support
|
||
|
cat "$diskImage"/nix-support/full-name > $out/nix-support/full-name
|
||
|
}
|