feat: update python template
This commit is contained in:
parent
c17d3f21d7
commit
fd159af54c
3 changed files with 6 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
||||||
use flake
|
use nix
|
||||||
export PYTHONPATH="$(pwd)/src:$PYTHONPATH"
|
export PYTHONPATH="$(pwd)/src:$PYTHONPATH"
|
||||||
if [ ! -z $NIX_LD ]; then
|
if [ ! -z $NIX_LD ]; then
|
||||||
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
{
|
|
||||||
description = "Simple python flake";
|
|
||||||
|
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
||||||
|
|
||||||
outputs = inputs@{ flake-parts, ... }:
|
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
||||||
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
|
|
||||||
perSystem = { config, self', inputs', pkgs, system, ... }: {
|
|
||||||
devShells.default = pkgs.mkShell {
|
|
||||||
buildInputs = with pkgs; [ python3 poetry ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
5
templates/python/shell.nix
Normal file
5
templates/python/shell.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
|
|
||||||
|
pkgs.mkShell {
|
||||||
|
buildInputs = with pkgs; [ python3 poetry ];
|
||||||
|
}
|
Loading…
Reference in a new issue