zfs_unstable: 2.3.0-rc3 -> 2.3.0-rc4 (#365045)
[NixPkgs.git] / pkgs / development / compilers / chicken / 5 / update.sh
blob59f5337dbb6d4bd310486cf97ac2f68f8a1e1fc3
1 #!/usr/bin/env nix-shell
2 #! nix-shell -I nixpkgs=../../../../.. -i oil -p oil chicken
4 export URL_PREFIX="https://code.call-cc.org/egg-tarballs/5/"
5 cd $(nix-prefetch-url \
6 'https://code.call-cc.org/cgi-bin/gitweb.cgi?p=eggs-5-latest.git;a=snapshot;h=master;sf=tgz' \
7 --name chicken-eggs-5-latest --unpack --print-path | tail -1)
9 echo "# THIS IS A GENERATED FILE. DO NOT EDIT!" > $_this_dir/deps.toml
10 for i, item in */*/*.egg {
11 var EGG_NAME=$(dirname $(dirname $item))
12 var EGG_VERSION=$(basename $(dirname $item))
13 var EGG_URL="${URL_PREFIX}${EGG_NAME}/${EGG_NAME}-${EGG_VERSION}.tar.gz"
14 var EGG_SHA256=$(nix-prefetch-url $EGG_URL)
15 export EGG_NAME
16 export EGG_VERSION
17 export EGG_SHA256
18 csi -s $_this_dir/read-egg.scm < $item
19 } >> $_this_dir/deps.toml