.files/shell.nix
Léana 江 8cc6d2b71c
remove niv residue
```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
```
2025-07-03 08:39:28 +02:00

33 lines
578 B
Nix

{
sources ? import ./npins,
pkgs ?
import sources.nixpkgs {
overlays = map import [
./nix/overlays/disko.nix
./nix/packages/overlay.nix
];
},
}: rec {
default = pkgs.mkShell {
packages = with pkgs; [
just
jq
npins
disko
];
};
withXMonad = pkgs.mkShell {
inputsFrom = [
default
];
packages = with pkgs; [
(haskellPackages.ghcWithPackages (self: [
self.xmonad-contrib
self.xmonad-extras
]))
haskell-language-server
cabal-install
];
};
}