Releases: Misterio77/nix-colors
4.0.0
3.1.0
3.0.0
Mostly to fix runCommandNoCC
being deprecated.
Bumping to major because of a single breaking change:
schemeFromYAML
requires a slug string to be passed as well.
Other changes: 2.0.0...3.0.0
Version 2.0.0
Hey folks!
This is a major version, which means there is a (single) breaking change.
TLDR: Change nix-colors.lib
to nix-colors.lib-contrib
.
We now have a (pure) nix function for converting base16 YAML schemes into nix-colors ones (and vice-versa!). Base16 has also recently forked into a community project, and decided to join all schemes into a single repo.
These two changes mean we no longer need to vendor schemes, woohoo!
Okay, so now all schemes are grabbed from base16-schemes
(as a flake input), converted to our format, and reexported. The exported scheme attrset is exactly the same, so nothing should change in how you currently use nix-colors.
This is a release I was looking forward to, as the base16 deviance was not something I really liked, but originally had to in order for this flake to be more ergonomical to use.
Bringing base16 schemes is a lot easier now with the new schemeFromYAML
function. Well, also be sure to upstream all your cool schemes (you can use schemeToYAML
, check the README!) and help base16 out!
The lib
was split into lib-core
and lib-contrib
so as to help seggregate pure nix functions, ones the flake needs to work, from random-wild-app-specific-functions that need access to a nixpkgs instance. For now, lib
is kept as a throw
to correctly guide people on their migration; but eventually lib-core
will be renamed to lib
, and lib-contrib
will find its way to lib.contrib
. Backwards compatibility with their hyphenated counterparts will be kept, of course.
Thanks for reading and have fun!