worblehat/flake.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

2023-05-04 16:40:30 +02:00
{
# inputs.nixpkgs.url = "nixpkgs/nixos-22.11";
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
inherit (pkgs) lib;
in {
apps.${system} = let
app = program: {
type = "app";
inherit program;
};
in {
default = self.apps.${system}.worblehat;
worblehat = app "${self.packages.${system}.worblehat}/bin/worblehat";
2023-05-04 16:40:30 +02:00
};
packages.${system} = {
default = self.packages.${system}.worblehat;
worblehat = with pkgs.python3Packages; buildPythonPackage {
pname = "worblehat";
version = "0.1.0";
src = ./.;
format = "pyproject";
buildInputs = [ poetry-core ];
propagatedBuildInputs = [
alembic
click
flask
flask-admin
flask-sqlalchemy
isbnlib
python-dotenv
sqlalchemy
];
};
};
2024-01-14 03:41:58 +01:00
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [ poetry sqlite ];
};
2023-05-04 16:40:30 +02:00
};
2024-01-14 03:41:58 +01:00
}