Update flake impl
parent
504a26ed12
commit
65fbb9c122
32
flake.nix
32
flake.nix
|
@ -27,16 +27,14 @@
|
|||
# Configuration for `nixpkgs`
|
||||
nixpkgsConfig = {
|
||||
config = { allowUnfree = true; };
|
||||
overlays = attrValues self.overlays ++ singleton
|
||||
(
|
||||
final: prev: optionalAttrs
|
||||
(prev.stdenv.system == "aarch64-darwin")
|
||||
{
|
||||
# Sub in x86 version of packages that don't build on Apple Silicon yet
|
||||
inherit (final.pkgs-x86);
|
||||
inherit (final.patched) python310 kitty;
|
||||
}
|
||||
);
|
||||
overlays = attrValues self.overlays ++ singleton (
|
||||
final: prev: optionalAttrs
|
||||
(prev.stdenv.system == "aarch64-darwin")
|
||||
{
|
||||
# Sub in x86 version of packages that don't build on Apple Silicon yet
|
||||
inherit (final.pkgs-x86);
|
||||
} // final.patched
|
||||
);
|
||||
};
|
||||
|
||||
# Shared home-manager configs
|
||||
|
@ -171,19 +169,7 @@
|
|||
system = "x86_64-darwin";
|
||||
inherit (nixpkgsConfig) config;
|
||||
};
|
||||
patched = {
|
||||
python310 = prev.python310.override {
|
||||
packageOverrides = python-self: python-super: {
|
||||
pyopenssl = python-super.pyopenssl.overrideAttrs (_: {
|
||||
meta.broken = false;
|
||||
});
|
||||
};
|
||||
};
|
||||
kitty = prev.kitty.overrideAttrs (_: {
|
||||
doCheck = false;
|
||||
doInstallCheck = false;
|
||||
});
|
||||
};
|
||||
patched = { };
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue