mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 22:30:25 +01:00
35 lines
730 B
Nix
35 lines
730 B
Nix
{ lib, ... }:
|
|
# ===================================================================
|
|
# Remove packages that are not well supported for the Darwin platform
|
|
# ===================================================================
|
|
let
|
|
brokenPackages = [
|
|
"terraform"
|
|
"terraformer"
|
|
"packer"
|
|
"git-trim"
|
|
"conda"
|
|
"mitmproxy"
|
|
"insomnia"
|
|
"wireshark"
|
|
"jsonnet"
|
|
"zls"
|
|
"verible"
|
|
"gdb"
|
|
"ncdu"
|
|
"racket-minimal"
|
|
];
|
|
in
|
|
{
|
|
nixpkgs.overlays = [
|
|
(
|
|
_: super:
|
|
let
|
|
removeUnwantedPackages =
|
|
pname: lib.warn "the ${pname} has been removed on the darwin platform" super.emptyDirectory;
|
|
in
|
|
lib.genAttrs brokenPackages removeUnwantedPackages
|
|
)
|
|
];
|
|
}
|