🩹 fix for niv/haskell on aarch64-darwin

This commit is contained in:
James Walker 2022-01-01 21:02:14 -05:00
parent b0d60905ab
commit f30e648d85
Signed by: walkah
GPG Key ID: 3C127179D6086E93

View File

@ -3,12 +3,13 @@ let
dotfiles = builtins.fetchTarball
"https://github.com/walkah/dotfiles/archive/main.tar.gz";
in {
in
{
imports = [ <home-manager/nix-darwin> ./homebrew.nix ];
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [ emacs-nox vim ghc stack ];
environment.systemPackages = with pkgs; [ emacs-nox vim ghc go gopls niv rustup stack ];
# Use a custom configuration.nix location.
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
@ -35,6 +36,16 @@ in {
'';
};
nixpkgs.config.packageOverrides = pkgs: {
haskellPackages = pkgs.haskellPackages.override {
overrides = self: super: {
niv = pkgs.haskell.lib.overrideCabal super.niv (drv: {
enableSeparateBinOutput = false;
});
};
};
};
programs = {
zsh = {
enable = true;