diff --git a/logo/font/.gitignore b/logo/font/.gitignore new file mode 100644 index 0000000..b2be92b --- /dev/null +++ b/logo/font/.gitignore @@ -0,0 +1 @@ +result diff --git a/logo/font/602.nix b/logo/font/602.nix new file mode 100644 index 0000000..f0f837f --- /dev/null +++ b/logo/font/602.nix @@ -0,0 +1,40 @@ +{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; + }; +} diff --git a/logo/font/README.md b/logo/font/README.md new file mode 100644 index 0000000..2f03074 --- /dev/null +++ b/logo/font/README.md @@ -0,0 +1,14 @@ +# Vegur (0.602) + +This is a mirror of the hard-to-find Vegur 0.602, by the dotcolon foundry. + +This is the font used for the NixOS logo. + + * http://dotcolon.net/font/vegur/ (new version only) + * https://web.archive.org/web/20110109162345/http://www.dotcolon.net/font/font.php?id=1 + * https://web.archive.org/web/20110109164714if_/http://www.dotcolon.net/DL/font/vegur.zip + * https://web.archive.org/web/20120828195558/http://www.dotcolon.net:80/font/?id=vegur + +``` +1127dc8c16f558b128298ed2437fc687e77c81993bd244570292a3c6300dfdf9 vegur.602.zip +``` diff --git a/logo/font/build.nix b/logo/font/build.nix new file mode 100644 index 0000000..0d96f7d --- /dev/null +++ b/logo/font/build.nix @@ -0,0 +1,5 @@ +{ pkgs ? import {} }: + +{ + vegur602 = pkgs.callPackage ./602.nix {}; +} diff --git a/logo/font/vegur.602.zip b/logo/font/vegur.602.zip new file mode 100644 index 0000000..b96405d Binary files /dev/null and b/logo/font/vegur.602.zip differ