-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
36 lines (36 loc) · 1.01 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
{
description = "x-highlight-region";
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.11";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
(utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
(final: prev: {
python3 = prev.python3.override {
packageOverrides = (final-python: prev-python: {
keybinder = final-python.callPackage ./nix/keybinder.nix { };
});
};
x-highlight-region =
final.callPackage ./nix/x-highlight-region.nix { };
})
];
};
in rec {
packages = rec {
default = x-highlight-region;
x-highlight-region = pkgs.x-highlight-region;
};
apps = {
default = {
type = "app";
program = "${packages.x-highlight-region}/bin/xhighlight";
};
};
}));
}