Skip to content

Commit

Permalink
fix: 🔥 remove json from nix and simplify
Browse files Browse the repository at this point in the history
Signed-off-by: Suyashtnt <[email protected]>
  • Loading branch information
Suya1671 committed Jul 10, 2024
1 parent eb4ff37 commit 6c95d6e
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,12 @@
pkgs = nixpkgs.legacyPackages.${system};

base16-lib = pkgs.callPackage base16.lib {};
dark-theme-json = builtins.fromJSON (builtins.readFile ./build/dark/kleur.json);
dark-theme-base16 = {
inherit (dark-theme-json) base00 base01 base02 base03 base04 base05 base06 base07 base08 base09 base0A base0B base0C base0D base0E base0F;
};
dark-theme = base16-lib.mkSchemeAttrs dark-theme-json;

light-theme-json = builtins.fromJSON (builtins.readFile ./build/light/kleur.json);
light-theme-base16 = {
inherit (light-theme-json) base00 base01 base02 base03 base04 base05 base06 base07 base08 base09 base0A base0B base0C base0D base0E base0F;
};
light-theme = base16-lib.mkSchemeAttrs light-themeson;
dark-theme-base16 = builtins.fromJSON (builtins.readFile ./build/dark/kleur.json);
dark-theme = base16-lib.mkSchemeAttrs dark-theme-base16;

light-theme-base16 = builtins.fromJSON (builtins.readFile ./build/light/kleur.json);
light-theme = base16-lib.mkSchemeAttrs light-theme-base16;
in {
devShells.default = pkgs.mkShell {
packages = [ pkgs.deno pkgs.nil pkgs.alejandra pkgs.vsce pkgs.nodejs ];
Expand All @@ -32,12 +27,10 @@
dark = {
base16-nix = dark-theme;
base16 = dark-theme-base16;
json = dark-theme-json;
};
light = {
base16-nix = light-theme;
base16 = light-theme-base16;
json = light-theme-json;
};
};
});
Expand Down

0 comments on commit 6c95d6e

Please sign in to comment.