intake/flake.nix

34 lines
783 B
Nix
Raw Normal View History

2022-08-11 23:32:44 +00:00
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {self, nixpkgs, flake-utils}:
let
makeFlakeOutputs = system:
let
pname = "intake";
pkgs = nixpkgs.legacyPackages."${system}";
in
{
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
python3Packages.poetry
];
};
defaultPackage = with pkgs.poetry2nix; mkPoetryApplication {
2022-08-12 06:42:50 +00:00
projectDir = builtins.path { path = ./server; name = pname; };
2022-08-11 23:32:44 +00:00
preferWheels = true;
};
defaultApp = flake-utils.lib.mkApp {
drv = self.defaultPackage."${system}";
};
};
in
with flake-utils.lib; eachSystem defaultSystems makeFlakeOutputs;
}