expose evalSchemeData function

This commit is contained in:
raf 2024-05-11 04:54:47 +03:00
parent a5c6348d42
commit 95e8054ccc
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29

View file

@ -6,7 +6,11 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
}; };
outputs = inputs @ {flake-parts, self, ...}: outputs = inputs @ {
flake-parts,
self,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} { flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"]; systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
perSystem = {pkgs, ...}: { perSystem = {pkgs, ...}: {
@ -28,6 +32,10 @@
lib.listToAttrs lib.listToAttrs
]; ];
in { in {
lib = {
inherit evalSchemeData;
};
schemeData = { schemeData = {
base16 = evalSchemeData "${self}/json/base16"; base16 = evalSchemeData "${self}/json/base16";
base24 = evalSchemeData "${self}/json/base24"; base24 = evalSchemeData "${self}/json/base24";