nixpkgs/pkgs/development/tools/poetry2nix/update

32 lines
777 B
Plaintext
Raw Normal View History

2019-12-29 19:43:45 +03:00
#!/usr/bin/env bash
pwd=$(pwd)
workdir=$(mktemp -d)
function cleanup {
cd "$pwd"
rm -rf $workdir
}
trap cleanup EXIT
cd "$workdir"
curl -L -s https://github.com/nix-community/poetry2nix/archive/master.tar.gz | tar -xz
mv poetry2nix-master/* .
mkdir build
2020-05-05 23:20:44 +03:00
cp *.* build/
2020-06-09 00:56:30 +03:00
cp -r pkgs hooks bin build/
2021-08-20 01:49:52 +03:00
rm build/shell.nix build/generate.py build/overlay.nix build/flake.* build/check-fmt.nix
2019-12-29 19:43:45 +03:00
cat > build/README.md << EOF
Dont change these files here, they are maintained at https://github.com/nix-community/poetry2nix
The update procedure is as-follows:
1. Send your change to the upstream poetry2nix repository
2. Get it approved with tests passing
3. Run the update script in pkgs/development/tools/poetry2nix
EOF
rm -rf "$pwd/poetry2nix"
mv build "$pwd/poetry2nix"