tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
freefont-ttf: switch to pname+version, fix build
Sandro Jäckel
3 years ago
e500cba3
50922fe9
+7
-5
1 changed file
expand all
collapse all
unified
split
pkgs
data
fonts
freefont-ttf
default.nix
+7
-5
pkgs/data/fonts/freefont-ttf/default.nix
reviewed
···
1
1
{ lib, fetchzip }:
2
2
3
3
fetchzip rec {
4
4
-
name = "freefont-ttf-20120503";
4
4
+
pname = "freefont-ttf";
5
5
+
version = "20120503";
5
6
6
6
-
url = "mirror://gnu/freefont/${name}.zip";
7
7
+
url = "mirror://gnu/freefont/freefont-ttf-${version}.zip";
7
8
8
9
postFetch = ''
9
9
-
mkdir -p $out/share/fonts
10
10
-
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
10
10
+
mkdir -p $out/share/fonts/truetype
11
11
+
mv $out/*.ttf $out/share/fonts/truetype
12
12
+
find $out -maxdepth 1 ! -type d -exec rm {} +
11
13
'';
12
14
13
13
-
sha256 = "0h0x2hhr7kvjiycf7fv800xxwa6hcpiz54bqx06wsqc7z61iklvd";
15
15
+
sha256 = "sha256-bdMZg/mHYc0N6HiR8uNl0CjeOwBou+OYj3LPkyEUHUA=";
14
16
15
17
meta = {
16
18
description = "GNU Free UCS Outline Fonts";