inquisitor/flake.nix

28 lines
627 B
Nix
Raw Normal View History

2022-12-02 06:01:36 +00:00
{
inputs = {
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
};
outputs = { self, nixpkgs, flake-compat }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
2022-12-02 06:01:36 +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
};
}