Nix flake of prebuilt Genode binaries
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
578 B

#!/bin/sh
# TODO: git clone shallow, fhs environment, make -f depot/whatever
if [ -z "$1"]; then
echo "the root of the genode directory must be passed as an argument"
exit 1
fi
echo "/* DO NOT EDIT - this file generated by gen-list.sh */ ["
cd $1
find public/genodelabs/bin -name '*.tar.xz' -print \
| sort \
| awk --field-separator / '{print $5" "$6" "$0}' \
| while read NAME VERSION LOCAL
do
TAR_PATH=`realpath $LOCAL`
SHA256=`nix-prefetch-url file://$TAR_PATH`
echo "{name=\"$NAME\";value={sha256=\"$SHA256\";version=\"${VERSION%%.tar.xz}\";};}"
done
echo ']'