mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
```fish
for d in {.,**/*}
if [ ! -d $d ]; continue; end
set from ./nix/sources.nix
set to ./npins
set from (realpath -s $from --relative-to $d)
set to (realpath -s $to --relative-to $d)
echo "($d, $from, $to)"
for f in $d/*
if [ ! -f $f ]; continue; end
sed -i "s=$from=$to=" $f
end
end
```
8 lines
236 B
Nix
8 lines
236 B
Nix
# The one in nixpkgs doesn't work
|
|
# Getting nix-tree: user error (Failed parsing nix path-info output.)
|
|
let
|
|
sources = import ../../npins;
|
|
in
|
|
final: _: {
|
|
nix-tree = (import sources.nix-tree).packages.${final.system}.default;
|
|
}
|