flake.nix: limit src for package

This commit is contained in:
2026-05-26 14:44:54 +09:00
parent e070433d37
commit 5dfb9640b6
+8 -1
View File
@@ -5,13 +5,20 @@
outputs = { self, nixpkgs }: let
system = "x86_64-linux";
inherit (nixpkgs) lib;
pkgs = nixpkgs.legacyPackages.${system};
in {
packages.${system} = {
default = self.packages.${system}.pvv-calendar-bot;
pvv-calendar-bot = pkgs.python3Packages.buildPythonPackage {
name = "pvv-calendar-bot";
src = ./.;
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./pyproject.toml
./src
];
};
pyproject = true;
build-system = [ pkgs.python3Packages.setuptools ];