From 99e08875057b25b12b69b4b6e60543a3aff976e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Wed, 9 Oct 2024 21:14:32 +0200 Subject: [PATCH] Limit package source using sourceFilesBySuffices --- flake.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 1e27bf6..926e1c1 100644 --- a/flake.nix +++ b/flake.nix @@ -32,7 +32,12 @@ { packages = { nixprstatus = mkPoetryApplication { - projectDir = ./.; + projectDir = pkgs.lib.sourceFilesBySuffices ./. [ + "pyproject.toml" + "poetry.lock" + "README.md" + ".py" + ]; python = pkgs.python312; nativeBuildInputs = [ pkgs.installShellFiles ]; postInstall = ''