forked from djpohly/dwl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
57 lines (46 loc) · 1.19 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
description = "My heavily customized fork of DWL";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};
# Override the systems for the flake, because this only builds on Linux
systems = {
url = "github:nix-systems/default-linux";
};
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
wvkbd-minego = {
url = github:minego/wvkbd/main;
inputs.nixpkgs.follows = "nixpkgs";
};
swipeguess = {
url = git+https://git.sr.ht/~earboxer/swipeGuess;
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
let
overlay = final: prev: {
# Replace the 'dwl' in nixpkgs with our own
dwl-unwrapped = prev.pkgs.callPackage ./dwl.nix { inherit inputs; };
dwl = prev.pkgs.callPackage ./derivation.nix { inherit inputs; };
};
in
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system}.extend overlay;
in rec {
packages.dwl-unwrapped = pkgs.dwl-unwrapped;
packages.dwl = pkgs.dwl;
packages.default = packages.dwl;
devShells.default = import ./shell.nix { inherit pkgs; };
}
)
//
{
overlays.default = overlay;
};
}