diff --git a/Caveat.ttf b/Caveat.ttf new file mode 100644 index 0000000..c083501 Binary files /dev/null and b/Caveat.ttf differ diff --git a/flake.nix b/flake.nix index 691fd4c..e7f5ac2 100644 --- a/flake.nix +++ b/flake.nix @@ -33,12 +33,10 @@ }: let copyType = extension: pathName: let filteredFiles = filter (pathEndsWith ("." + extension)) files; + filename = file: lists.last (strings.splitString "/" (toString file)); in (optionalString (filteredFiles != []) "mkdir -p $out/share/fonts/${pathName}\n") - + concatStringsSep "\n" (map (file: '' - filename=$(${pkgs.fontconfig}/bin/fc-query -f %{postscriptname} ${file}).${extension} - cp -v ${file} $out/share/fonts/${pathName}/$filename - '') + + concatStringsSep "\n" (map (file: "cp -v ${file} $out/share/fonts/${pathName}/${filename file}") filteredFiles); in pkgs.stdenvNoCC.mkDerivation { @@ -71,6 +69,12 @@ license = licenses.unfree; author = "Colophon Foundry"; } + { + name = "Caveat"; + files = [./Caveat.ttf]; + license = licenses.ofl; + author = "Pablo Impallari and Alexi Vanyashin"; + } ]; in { packages = listToAttrs (map (font: {