freefont-ttf: switch to pname+version, fix build
This commit is contained in:
parent
50922fe9fd
commit
e500cba398
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue