lol

freefont-ttf: switch to pname+version, fix build

+7 -5
+7 -5
pkgs/data/fonts/freefont-ttf/default.nix
··· 1 1 { lib, fetchzip }: 2 2 3 3 fetchzip rec { 4 - name = "freefont-ttf-20120503"; 4 + pname = "freefont-ttf"; 5 + version = "20120503"; 5 6 6 - url = "mirror://gnu/freefont/${name}.zip"; 7 + url = "mirror://gnu/freefont/freefont-ttf-${version}.zip"; 7 8 8 9 postFetch = '' 9 - mkdir -p $out/share/fonts 10 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 10 + mkdir -p $out/share/fonts/truetype 11 + mv $out/*.ttf $out/share/fonts/truetype 12 + find $out -maxdepth 1 ! -type d -exec rm {} + 11 13 ''; 12 14 13 - sha256 = "0h0x2hhr7kvjiycf7fv800xxwa6hcpiz54bqx06wsqc7z61iklvd"; 15 + sha256 = "sha256-bdMZg/mHYc0N6HiR8uNl0CjeOwBou+OYj3LPkyEUHUA="; 14 16 15 17 meta = { 16 18 description = "GNU Free UCS Outline Fonts";