Skip to content

Releases: Misterio77/nix-colors

4.0.0

21 Apr 20:19
b92df8f
Compare
Choose a tag to compare

This simply moves lib-core to lib and lib-contrib to lib.contrib (the old versions still work, though.

Marked as breaking change as it might be a problem for people from versions prior to 2.0.

3.1.0

21 Apr 20:11
4ccd57b
Compare
Choose a tag to compare
  • Allow arbitrary color names (#26)
  • Allow optional leading '#' in schemes (they will be stripped accessed from the hm module) (9487c7f)
  • Fix issue with nix-copy-closure and nix remote builders (#29)

3.0.0

26 Sep 19:05
bb56fe2
Compare
Choose a tag to compare

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

10 Jun 08:16
81c0629
Compare
Choose a tag to compare

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!