1
0
Fork 0
mirror of https://github.com/NixOS/nixos-artwork synced 2024-10-18 00:06:24 -04:00
nixos-artwork/logo/font/602.nix
Samuel Dionne-Riel e5e962b4b6 Adds the font files to the repository.
This is a locally available cache for posterity.
2018-08-16 21:46:04 -04:00

41 lines
826 B
Nix

{stdenv, python36Packages, unzip}:
stdenv.mkDerivation rec {
name = "vegur602-${version}";
version = "0.602";
src = ./vegur.602.zip;
unpackPhase = ''
unzip $src
'';
nativeBuildInputs = [ unzip python36Packages.fonttools ];
patchPhase = ''
ttx *.otf
rm *.otf
for f in *.ttx; do
substituteInPlace "$f" \
--replace 'Vegur' 'Vegur602' \
--replace 'vegur' 'vegur602'
ttx "$f"
done
'';
installPhase = ''
mkdir -p $out/share/fonts/vegur602
for f in *.otf; do
mv "$f" "$out/share/fonts/vegur602/"
done
'';
meta = with stdenv.lib; {
homepage = http://dotcolon.net/font/vegur/;
description = "A humanist sans serif font.";
platforms = platforms.all;
maintainers = [ maintainers.samueldr ];
license = licenses.cc0;
};
}