-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
flake.nix
34 lines (30 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
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = {nixpkgs, ...} @ inputs: let
systems = ["aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux"];
forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
in {
packages = forAllSystems (pkgs: rec {
default = catppuccin-vsc;
catppuccin-vsc = pkgs.callPackage ./nix {};
});
overlays.default = final: prev: let
pkg = inputs.self.packages.${prev.stdenv.system}.default;
in {
# create a new package
catppuccin-vsc = pkg;
# overwrite the vscode-extensions package
vscode-extensions =
prev.vscode-extensions
// {
catppuccin =
(prev.vscode-extensions.catppuccin or {})
// {
catppuccin-vsc = pkg;
};
};
};
devShells = forAllSystems (pkgs: {default = import ./nix/shell.nix {inherit pkgs;};});
formatter = forAllSystems (pkgs: pkgs.alejandra);
};
}