diff --git a/lib/core/default.nix b/lib/core/default.nix index d030fb0..2d6c2e0 100644 --- a/lib/core/default.nix +++ b/lib/core/default.nix @@ -30,7 +30,5 @@ */ schemeFromYAML = import ./schemeFromYAML.nix; - schemeToYAML = builtins.trace "nix-colors: schemeToYAML is deprecated and will be removed soon." (import ./schemeToYAML.nix); - conversions = import ./conversions.nix { inherit nixpkgs-lib; }; } diff --git a/lib/core/schemeToYAML.nix b/lib/core/schemeToYAML.nix deleted file mode 100644 index 45b53a8..0000000 --- a/lib/core/schemeToYAML.nix +++ /dev/null @@ -1,34 +0,0 @@ -let - inherit (builtins) concatStringsSep map; - - # From nixpkgs, but with newline - concatMapStrings = f: list: concatStringsSep "\n" (map f list); - - colorNames = map (n: "base0${n}") [ - "0" - "1" - "2" - "3" - "4" - "5" - "6" - "7" - "8" - "9" - "A" - "B" - "C" - "D" - "E" - "F" - ]; - - schemeToYAML = scheme: - '' - scheme: "${scheme.name}" - author: "${scheme.author}" - '' + concatMapStrings # Add a line for each base0X color - (color: ''${color}: "${scheme.palette.${color}}"'') - colorNames; -in -schemeToYAML