feat(templates): use poetry2nix for template
parent
70e95a1ea4
commit
118fe7ba67
|
@ -1,6 +1 @@
|
|||
use nix
|
||||
export PYTHONPATH="$(pwd)/src:$PYTHONPATH"
|
||||
if [ ! -z $NIX_LD ]; then
|
||||
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
|
||||
fi
|
||||
layout poetry
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
{ pkgs ? import <nixpkgs> { } }:
|
||||
|
||||
let
|
||||
poetry2nix = import (fetchTarball "https://github.com/nix-community/poetry2nix/archive/master.tar.gz") { };
|
||||
project =
|
||||
poetry2nix.mkPoetryApplication {
|
||||
projectDir = ./.;
|
||||
preferWheels = true;
|
||||
};
|
||||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [ python3 poetry ];
|
||||
inputsFrom = [ project ];
|
||||
packages = [ pkgs.poetry ];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue