nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1#!/usr/bin/env nix-shell
2#! nix-shell -I nixpkgs=../../../../.. -i ysh -p oils-for-unix chicken nix-prefetch-git jq
3
4setglobal ENV.URL_PREFIX="https://code.call-cc.org/egg-tarballs/5/"
5cd $(nix-prefetch-git --deepClone --quiet \
6 https://code.call-cc.org/eggs-5-latest | jq --raw-output .path)
7
8echo "# THIS IS A GENERATED FILE. DO NOT EDIT!" > $_this_dir/deps.toml
9for i, item in */*/*.egg {
10 setglobal ENV.EGG_NAME=$(dirname $(dirname $item))
11 setglobal ENV.EGG_VERSION=$(basename $(dirname $item))
12 setglobal ENV.EGG_URL="$[ENV.URL_PREFIX]$[ENV.EGG_NAME]/$[ENV.EGG_NAME]-$[ENV.EGG_VERSION].tar.gz"
13 setglobal ENV.EGG_SHA256=$(nix-prefetch-url $[ENV.EGG_URL])
14 csi -s $_this_dir/read-egg.scm < $item
15} >> $_this_dir/deps.toml