2022-12-02 06:01:36 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
2022-12-10 20:48:00 +00:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs?ref=refs/tags/22.11";
|
|
|
|
flake-compat = {
|
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
2022-12-02 06:01:36 +00:00
|
|
|
};
|
|
|
|
|
2022-12-10 20:48:00 +00:00
|
|
|
outputs = { self, nixpkgs, flake-compat }:
|
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in
|
2022-12-02 06:01:36 +00:00
|
|
|
{
|
2022-12-10 20:48:00 +00:00
|
|
|
packages.${system}.default =
|
|
|
|
(pkgs.poetry2nix.mkPoetryApplication {
|
|
|
|
projectDir = ./.;
|
|
|
|
}).dependencyEnv;
|
|
|
|
|
|
|
|
defaultPackage.${system} = self.packages.${system}.default;
|
|
|
|
|
|
|
|
devShell.${system} = pkgs.mkShell {
|
|
|
|
buildInputs = [ (pkgs.python3.withPackages (p: [p.poetry])) ];
|
|
|
|
};
|
2022-12-02 06:01:36 +00:00
|
|
|
};
|
|
|
|
}
|