forked from catppuccin/toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
28 lines (25 loc) · 977 Bytes
/
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
{
description = "Catppuccin's development tools";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = {
self,
nixpkgs,
...
}: let
systems = ["aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux"];
forEachSystem = fn: lib.genAttrs systems (system: fn (import nixpkgs {inherit system;}));
inherit (nixpkgs) lib;
in {
checks = forEachSystem (pkgs: self.packages.${pkgs.system});
packages = forEachSystem (pkgs: lib.filterAttrs (_: v: lib.isDerivation v) (pkgs.callPackage ./nix {}));
overlays.default = final: prev: {
catppuccin-catwalk = (prev.callPackage ./nix {}).catwalk;
catppuccin-whiskers = (prev.callPackage ./nix {}).whiskers;
};
formatter = forEachSystem (pkgs: pkgs.alejandra);
};
nixConfig = {
extra-substituters = ["https://catppuccin.cachix.org"];
extra-trusted-public-keys = ["catppuccin.cachix.org-1:noG/4HkbhJb+lUAdKrph6LaozJvAeEEZj4N732IysmU="];
};
}