diff --git a/pkgs/data/fonts/freefont-ttf/default.nix b/pkgs/data/fonts/freefont-ttf/default.nix index 5934ec3589ac..9d8c28681a9f 100644 --- a/pkgs/data/fonts/freefont-ttf/default.nix +++ b/pkgs/data/fonts/freefont-ttf/default.nix @@ -1,16 +1,18 @@ { lib, fetchzip }: fetchzip rec { - name = "freefont-ttf-20120503"; + pname = "freefont-ttf"; + version = "20120503"; - url = "mirror://gnu/freefont/${name}.zip"; + url = "mirror://gnu/freefont/freefont-ttf-${version}.zip"; postFetch = '' - mkdir -p $out/share/fonts - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype + mkdir -p $out/share/fonts/truetype + mv $out/*.ttf $out/share/fonts/truetype + find $out -maxdepth 1 ! -type d -exec rm {} + ''; - sha256 = "0h0x2hhr7kvjiycf7fv800xxwa6hcpiz54bqx06wsqc7z61iklvd"; + sha256 = "sha256-bdMZg/mHYc0N6HiR8uNl0CjeOwBou+OYj3LPkyEUHUA="; meta = { description = "GNU Free UCS Outline Fonts";