From c0225ea757afb066c7527d522a8f14936cad9e2a Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Tue, 15 Jul 2025 23:33:06 +0200 Subject: [PATCH] cli: fix dot files not copied $out in buildPythonApplication File such as .envrc, .gitignore where not copied into the package and thus missing in all templates --- pkgs/clan-cli/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/clan-cli/default.nix b/pkgs/clan-cli/default.nix index be9dd935a..1fb9cec0f 100644 --- a/pkgs/clan-cli/default.nix +++ b/pkgs/clan-cli/default.nix @@ -258,6 +258,8 @@ pythonRuntime.pkgs.buildPythonApplication { # leading to a different NAR hash and copying it here would also lead to `patchShebangs` # changing the contents postInstall = '' + cp -arf clan_lib/clan_core_templates/* $out/${pythonRuntime.sitePackages}/clan_lib/clan_core_templates + cp -r ${nixpkgs'} $out/${pythonRuntime.sitePackages}/clan_lib/nixpkgs ln -sf ${nix-select} $out/${pythonRuntime.sitePackages}/clan_lib/select installShellCompletion --bash --name clan \