1
0
Fork 0

Only install Haskell world on systems where it is necessary.

This commit is contained in:
Malte 2023-02-27 19:53:19 +01:00
parent 423190df7e
commit 1bfb93dd54
6 changed files with 3 additions and 13 deletions

View file

@ -64,7 +64,7 @@ let
./roles/git-sign.nix
./roles/gnome.nix
./roles/status-script.nix
./roles/hoogle.nix
./roles/haskell-env.nix
./roles/terminal.nix
./roles/mpclient.nix
./roles/mpd.nix

View file

@ -146,7 +146,6 @@
magic-wormhole
alejandra
nix-top
ghcWithPackages
ghcid
matrix-commander
upterm

View file

@ -7,4 +7,5 @@
Restart = "always";
};
};
home.packages = [pkgs.ghcWithPackages];
}

View file

@ -1,7 +1,6 @@
final: _: let
myPkgs = import ./packages.nix;
in {
myHaskellPackages = myPkgs.makeHaskellPackages final.unstableHaskellPackages;
myHaskellScriptPackages = myPkgs.makeHaskellScriptPackages final.haskellPackages;
ghcWithPackages = final.unstableGhc.withHoogle (p: builtins.attrValues (myPkgs.makeHaskellPackages p));
ghcWithPackages = final.unstableGhc.withHoogle (p: builtins.attrValues (myPkgs.makeHaskellPackages p // (final.flake-inputs.self.overlays.addMyHaskellPackages "" "")));
}

View file

@ -1 +0,0 @@
use flake ..#haskell

View file

@ -86,13 +86,5 @@ in {
};
perSystem = {config, ...}: {
inherit packages;
devShells.haskell = hpkgs.shellFor {
packages = hpkgs: (builtins.attrValues (selectHaskellPackages hpkgs));
shellHook = config.pre-commit.installationScript;
buildInputs = [
hpkgs.haskell-language-server
hpkgs.cabal-install
];
};
};
}