pyansi/flake.nix

52 lines
1 KiB
Nix
Raw Normal View History

2023-10-29 16:46:47 -05:00
{
description = "pyansi";
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
make-shell = {
url = "github:ursi/nix-make-shell";
};
};
outputs = {
self,
nixpkgs,
flake-utils,
make-shell,
} @ inputs:
flake-utils.lib.eachDefaultSystem
(
system: let
version = self.lastModifiedDate;
pkgs = import nixpkgs {
inherit system;
};
make-shell = import inputs.make-shell {
inherit system pkgs;
};
in {
devShells.default = let
2023-10-30 13:58:36 -05:00
python = pkgs.python311.withPackages (
2023-10-29 16:46:47 -05:00
ps:
with ps; [
# poetry-core
]
);
project = "pyansi";
in
make-shell {
packages = [
python
pkgs.poetry
];
env = {
NIX_PROJECT = project;
};
};
}
);
}