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
```
37 lines
719 B
Nix
37 lines
719 B
Nix
let
|
|
sources = import ../../npins;
|
|
in
|
|
{pkgs ? import sources.pin-necro-man-nixpkgs {}}: let
|
|
shell = {
|
|
mkShell,
|
|
#
|
|
pkgs,
|
|
python310Packages,
|
|
texlive,
|
|
}:
|
|
mkShell {
|
|
name = "necro-manual";
|
|
packages = [
|
|
pkgs.emacs
|
|
python310Packages.pygments
|
|
|
|
(texlive.combine {
|
|
inherit
|
|
(texlive)
|
|
scheme-medium
|
|
#
|
|
wrapfig
|
|
capt-of
|
|
minted
|
|
upquote
|
|
todonotes
|
|
fvextra
|
|
catchfile
|
|
xstring
|
|
framed
|
|
;
|
|
})
|
|
];
|
|
};
|
|
in
|
|
pkgs.callPackage shell {}
|