-
Notifications
You must be signed in to change notification settings - Fork 1
/
overlays.nix
63 lines (58 loc) · 1.6 KB
/
overlays.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
inputs,
lib,
...
}: let
my-pkgs = import inputs.my-nixpkgs {
system = "x86_64-linux";
};
overlays = {
emacs = inputs.emacs-overlay.overlay;
wayland = self: super: removeAttrs (inputs.nixpkgs-wayland.overlay self super) ["sway-unwrapped" "wlroots"];
agda = inputs.all-agda.overlay."x86_64-linux";
texpresso = self: super: {
texpresso-mode = my-pkgs.emacsPackages.texpresso;
};
agda-default = self: super: {
agdaPackages = self.agdaPackages-2_7_0;
agda = self.agda-2_7_0;
};
# discord = self: super: {
# discord =
# (import inputs.master {
# system = "x86_64-linux";
# config.allowUnfree = true;
# })
# .discord;
# };
fmt6overlay = self: super: {
fmt_6 = super.fmt;
};
discordpyOverlay = self: super: {
python37 = super.python37.override {
packageOverrides = pself: psuper: {
discordpy = psuper.discordpy.overrideAttrs (attrs: {
patchPhase = ''
substituteInPlace "requirements.txt" \
--replace "aiohttp>=3.6.0,<3.7.0" "aiohttp>=3.6.0,<3.8.0" \
'';
});
};
};
};
gammastepOverlay = self: super: {
gammastep = super.gammastep.overrideAttrs (attr: {
postInstall = ''
ln $out/bin/gammastep $out/bin/redshift
ln $out/bin/gammastep-indicator $out/bin/redshift-gtk
'';
});
};
};
in {
options.overlays = lib.mkOption {
type = lib.types.listOf lib.types.unspecified;
default = [];
};
config.overlays = builtins.attrValues overlays;
}