Commit 06d52b09 authored by rczb's avatar rczb
Browse files

nerd-fonts: fix attr name and version handling

parent e18aa0b1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -14,10 +14,10 @@ let
    let
      lowerName = lib.strings.toLower name;
    in
    if builtins.match "[[:digit:]].*" lowerName != null then "_" + lowerName else lowerName;
    if builtins.match "^[[:digit:]].*" lowerName != null then "_" + lowerName else lowerName;

  convertVersion =
    version: if builtins.match "[[:digit:]].*" version != null then "+" + version else "";
    version: if builtins.match "^[[:digit:]].*" version != null then "+" + version else "";

  convertLicense = import ./convert-license.nix lib;