mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-16 12:43:53 -07:00
flake.nix: Erase the noise with xmonad.lib.fromHOL.
This commit is contained in:
12
flake.nix
12
flake.nix
@@ -7,15 +7,11 @@
|
|||||||
};
|
};
|
||||||
outputs = { self, flake-utils, nixpkgs, git-ignore-nix, xmonad }:
|
outputs = { self, flake-utils, nixpkgs, git-ignore-nix, xmonad }:
|
||||||
let
|
let
|
||||||
overlay = final: prev: {
|
hoverlay = final: prev: hself: hsuper: {
|
||||||
haskellPackages = prev.haskellPackages.override (old: {
|
xmonad-contrib = hself.callCabal2nix "xmonad-contrib"
|
||||||
overrides = prev.lib.composeExtensions (old.overrides or (_: _: {}))
|
(git-ignore-nix.lib.gitignoreSource ./.) { };
|
||||||
(hself: hsuper: {
|
|
||||||
xmonad-contrib =
|
|
||||||
hself.callCabal2nix "xmonad-contrib" (git-ignore-nix.lib.gitignoreSource ./.) { };
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
overlay = xmonad.lib.fromHOL hoverlay;
|
||||||
overlays = xmonad.overlays ++ [ overlay ];
|
overlays = xmonad.overlays ++ [ overlay ];
|
||||||
in flake-utils.lib.eachDefaultSystem (system:
|
in flake-utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
|
Reference in New Issue
Block a user