Merge catppuccin-userstyles-nix: flake exports stylusSettings, builds from in-repo styles offline
Build Stylus Export / build (push) Skipped
CI / ci (push) Skipped
Deno Check / check (push) Skipped
Lint Userstyles / lint (push) Skipped

This commit is contained in:
bug committed 2026-10-18 02:04:31 -05:00
1 parent 7e3ce35890
commit 68285a17b1
12 files changed
+1173 -18

No files matched your search

+19 -11
View File
@@ -1,20 +1,28 @@
{
description = "Catppuccin userstyles";
description = "Catppuccin userstyles (bug fork) + Stylus settings generator";
inputs.nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs =
{ nixpkgs, ... }:
{ self, nixpkgs, ... }:
let
forAllSystems =
function:
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (
system: function nixpkgs.legacyPackages.${system}
);
forAllSystems = f: nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (s: f nixpkgs.legacyPackages.${s});
packagesFor = pkgs: rec {
stylus-storage-gen = pkgs.callPackage ./pkgs/stylus-storage-gen.nix { };
catppuccin-stylus-storage = pkgs.callPackage ./pkgs/catppuccin-stylus-storage.nix {
inherit stylus-storage-gen;
src = self;
};
};
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.callPackage ./shell.nix { };
});
packages = forAllSystems packagesFor;
# stylusSettings.<system> { global = { ... }; "Userstyle X Catppuccin" = { ... }; }
stylusSettings = forAllSystems (pkgs: userstylesOptions:
builtins.fromJSON (builtins.readFile
((packagesFor pkgs).catppuccin-stylus-storage.override { inherit userstylesOptions; } + /share/storage.js)));
devShells = forAllSystems (pkgs: { default = pkgs.callPackage ./shell.nix { }; });
};
}