🩹 fix for niv/haskell on aarch64-darwin
This commit is contained in:
parent
b0d60905ab
commit
f30e648d85
@ -3,12 +3,13 @@ let
|
|||||||
dotfiles = builtins.fetchTarball
|
dotfiles = builtins.fetchTarball
|
||||||
"https://github.com/walkah/dotfiles/archive/main.tar.gz";
|
"https://github.com/walkah/dotfiles/archive/main.tar.gz";
|
||||||
|
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
imports = [ <home-manager/nix-darwin> ./homebrew.nix ];
|
imports = [ <home-manager/nix-darwin> ./homebrew.nix ];
|
||||||
|
|
||||||
# List packages installed in system profile. To search by name, run:
|
# List packages installed in system profile. To search by name, run:
|
||||||
# $ nix-env -qaP | grep wget
|
# $ 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.
|
# Use a custom configuration.nix location.
|
||||||
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
|
# $ 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 = {
|
programs = {
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user