-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
38 lines (35 loc) · 1.17 KB
/
flake.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
{
inputs = {
flake-utils.url = github:numtide/flake-utils?rev=74f7e4319258e287b0f9cb95426c9853b282730b;
nixpkgs.url = github:nixos/nixpkgs?ref=nixos-24.11;
};
description = "Allows you to create XMonad key-bindings that do different things depending on the current window state.";
outputs = { self, nixpkgs, flake-utils }:
let
inherit (nixpkgs.lib) composeExtensions;
name = "xmonad-keybindings-query";
overlay = (final: prev: {
haskellPackages = prev.haskellPackages.override (old: {
overrides = composeExtensions
(old.overrides or (_: _: {}))
(_hfinal: hprev: {
xmonad-keybindings-query = hprev.developPackage {
inherit name;
root = self;
};
});
});
});
in
{ inherit overlay; } //
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; overlays = [ overlay ]; };
in {
packages = flake-utils.lib.flattenTree rec {
inherit (pkgs.haskellPackages) xmonad-keybindings-query;
default = xmonad-keybindings-query;
};
}
);
}