mirror of
https://github.com/NixOS/nixos-artwork
synced 2024-10-18 14:32:43 -04:00
41 lines
826 B
Nix
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;
|
||
|
};
|
||
|
}
|