https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
11 lines
256 B
Text
Executable file
11 lines
256 B
Text
Executable file
#!/usr/bin/env nix-shell
|
|
#! nix-shell -I nixpkgs=../../../../../. -i bash
|
|
set -eux
|
|
|
|
rm -f ./poetry.lock ./poetry-git-overlay.nix
|
|
|
|
poetry lock
|
|
|
|
# builtins.fetchGit is disabled in restricted eval
|
|
# Pin fixed-output derivations from lock file
|
|
poetry2nix lock
|