-
Notifications
You must be signed in to change notification settings - Fork 0
/
overlay.nix
66 lines (58 loc) · 1.55 KB
/
overlay.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
64
65
66
{
inputs,
system,
...
}: final: prev: let
github-nvim-theme = prev.vimUtils.buildVimPlugin {
name = "github-nvim-theme";
src = inputs.github-nvim-theme;
dontBuild = true;
};
in {
# stable packages
stable = import inputs.nixpkgs-stable {
inherit system;
config.allowUnfree = true;
};
# own packages
custom = inputs.self.packages."${system}";
# Extra Vim / Neovim plugins
vimPlugins =
prev.vimPlugins
// {
inherit github-nvim-theme;
};
# Battle.net dependency
lutris = prev.lutris.override {extraPkgs = pkgs: [pkgs.jansson];};
# XWayland uncapped FPS patch
xwayland = prev.xwayland.overrideAttrs (old: {
patches =
(old.patches or [])
++ [
./patches/xwayland-vsync.patch
];
});
# git LuaJIT version of Awesome
awesome-luajit-git = let
extraGIPackages = [prev.playerctl];
in
(prev.awesome.override {
lua = prev.luajit;
gtk3Support = true;
})
.overrideAttrs (old: {
src = inputs.awesome;
version = "${old.version}-git";
patches = [];
postPatch = ''
patchShebangs tests/examples/_postprocess.lua
patchShebangs tests/examples/_postprocess_cleanup.lua
'';
cmakeFlags = old.cmakeFlags ++ ["-DGENERATE_MANPAGES=OFF"];
GI_TYPELIB_PATH = let
mkTypeLibPath = pkg: "${pkg}/lib/girepository-1.0";
extraGITypeLibPaths = prev.lib.forEach extraGIPackages mkTypeLibPath;
in
prev.lib.concatStringsSep ":" (extraGITypeLibPaths ++ [(mkTypeLibPath prev.pango.out)]);
});
}