blob: 33a2823f360a76b138c31cd83881847121f3260c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p curl nix-prefetch-github
rev=$(curl -s https://api.github.com/repos/python-poetry/poetry/releases/latest | jq -r '.name')
nix-prefetch-github --rev "$rev" python-poetry poetry > src.json
echo >> src.json
src=$(nix-build --no-out-link --expr 'with import <nixpkgs> {}; fetchFromGitHub (lib.importJSON ./src.json)')
cp $src/pyproject.toml $src/poetry.lock .
nix-build --expr '(import <nixpkgs> { overlays = [ (import ../../overlay.nix) ]; }).poetry'
|