Stow doesn't like when the origin path changes randomly (like when updating a flake input)
This commit is contained in:
SebastianStork 2025-12-02 22:31:20 +01:00
parent 1c9a690572
commit 71794dd9c9
Signed by: SebastianStork
SSH key fingerprint: SHA256:iEM011ogNMG1q8+U500adGu/9rpPuZ2KnFtbdLeqTiI
2 changed files with 6 additions and 4 deletions

View file

@ -29,7 +29,9 @@
default = pkgs.mkShellNoCC {
packages = [ pkgs.stow ];
shellHook = ''
stow --dir=${inputs} --target=./. package
mkdir --parents .nix/inputs
ln --symbolic --force --no-dereference "${inputs}" .nix/inputs/package-src
stow --dir=.nix/inputs --target=./. --restow package-src
'';
};