-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
74 lines (59 loc) · 1.75 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
description = "The Kauz colorscheme";
outputs = { self, nixpkgs }:
let
inherit (nixpkgs.lib) genAttrs;
version = if (self ? rev) then self.rev else "dirty";
eachSystem = genAttrs [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
mkPackages = pkgs: {
kauz-nvim = (pkgs.vimUtils.buildVimPlugin {
inherit version;
pname = "kauz-nvim";
src = ./.;
meta.homepage = "https://github.com/buntec/kauz/";
}).overrideAttrs { dependencies = [ pkgs.vimPlugins.lush-nvim ]; };
kauz-fish = pkgs.fishPlugins.buildFishPlugin {
inherit version;
pname = "kauz-fish";
src = ./extras/fish/kauz;
};
kauz-fish-light = pkgs.fishPlugins.buildFishPlugin {
inherit version;
pname = "kauz-fish";
src = ./extras/fish/kauz-light;
};
kauz-kitty = pkgs.stdenv.mkDerivation {
inherit version;
pname = "kauz-kitty";
src = ./extras/kitty;
installPhase = ''
mkdir -p $out
cp kauz.conf $out/
cp kauz-light.conf $out/
'';
};
kauz-tmux = pkgs.stdenv.mkDerivation {
inherit version;
pname = "kauz-tmux";
src = ./extras/tmux;
installPhase = ''
mkdir -p $out
cp kauz.tmux $out/
cp kauz-light.tmux $out/
'';
};
};
in {
packages = eachSystem (system:
let pkgs = import nixpkgs { inherit system; };
in mkPackages pkgs);
overlays.default = final: _: mkPackages final;
# home-manager module
homeModules.default = import ./home;
};
}