nixpkgs/pkgs/development/compilers/chicken/5/fetchegg/builder.sh
2023-01-16 00:08:12 +02:00

10 lines
266 B
Bash

if [ -e .attrs.sh ]; then source .attrs.sh; fi
source $stdenv/setup
echo "exporting egg ${eggName} (version $version) into $out"
mkdir -p $out
CHICKEN_EGG_CACHE=. chicken-install -r "${eggName}:${version}"
rm ${eggName}/{STATUS,TIMESTAMP}
cp -r ${eggName}/* $out/