intake/flake.nix

34 lines
783 B
Nix

{
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 {
projectDir = builtins.path { path = ./server; name = pname; };
preferWheels = true;
};
defaultApp = flake-utils.lib.mkApp {
drv = self.defaultPackage."${system}";
};
};
in
with flake-utils.lib; eachSystem defaultSystems makeFlakeOutputs;
}