Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 32 lines 831 B view raw
1#!/usr/bin/env bash 2set -euo pipefail 3pwd=$(pwd) 4workdir=$(mktemp -d) 5 6function cleanup { 7 cd "$pwd" 8 rm -rf $workdir 9} 10trap cleanup EXIT 11 12cd "$workdir" 13 14curl -L -s https://github.com/nix-community/poetry2nix/archive/master.tar.gz | tar -xz 15mv poetry2nix-master/* . 16 17mkdir build 18cp *.* build/ 19cp -r overrides pkgs hooks bin build/ 20rm build/shell.nix build/generate.py build/overlay.nix build/flake.* build/check-fmt.nix build/pkgs/poetry/update* 21 22cat > build/README.md << EOF 23Dont change these files here, they are maintained at https://github.com/nix-community/poetry2nix 24 25The update procedure is as-follows: 261. Send your change to the upstream poetry2nix repository 272. Get it approved with tests passing 283. Run the update script in pkgs/development/tools/poetry2nix 29EOF 30 31rm -rf "$pwd/poetry2nix" 32mv build "$pwd/poetry2nix"