···11+{ stdenv, fetchFromGitHub }:
22+33+stdenv.mkDerivation rec {
44+ name = "orbitron-${version}";
55+ version = "20110526";
66+77+ src = fetchFromGitHub {
88+ owner = "theleagueof";
99+ repo = "orbitron";
1010+ rev = "13e6a52";
1111+ sha256 = "1c6jb7ayr07j1pbnzf3jxng9x9bbqp3zydf8mqdw9ifln1b4ycyf";
1212+ };
1313+1414+ phases = [ "unpackPhase" "installPhase" ];
1515+1616+ installPhase = ''
1717+ otfdir=$out/share/fonts/opentype/orbitron
1818+ ttfdir=$out/share/fonts/ttf/orbitron
1919+ mkdir -p $otfdir $ttfdir
2020+ cp -v Orbitron*.otf $otfdir
2121+ cp -v Orbitron*.ttf $ttfdir
2222+ '';
2323+2424+ meta = with stdenv.lib; {
2525+ homepage = "https://www.theleagueofmoveabletype.com/orbitron";
2626+ downloadPage = "https://www.theleagueofmoveabletype.com/orbitron/download";
2727+ description = ''
2828+ Geometric sans-serif for display purposes by Matt McInerney'';
2929+ longDescription = ''
3030+ Orbitron is a geometric sans-serif typeface intended for display
3131+ purposes. It features four weights (light, medium, bold, and
3232+ black), a stylistic alternative, small caps, and a ton of
3333+ alternate glyphs.
3434+3535+ Orbitron was designed so that graphic designers in the future
3636+ will have some alternative to typefaces like Eurostile or Bank
3737+ Gothic. If you’ve ever seen a futuristic sci-fi movie, you have
3838+ may noticed that all other fonts have been lost or destroyed in
3939+ the apocalypse that led humans to flee earth. Only those very few
4040+ geometric typefaces have survived to be used on spaceship
4141+ exteriors, space station signage, monopolistic corporate
4242+ branding, uniforms featuring aerodynamic shoulder pads, etc. Of
4343+ course Orbitron could also be used on the posters for the movies
4444+ portraying this inevitable future.
4545+ '';
4646+ license = licenses.ofl;
4747+ platforms = platforms.all;
4848+ maintainers = [ maintainers.leenaars ];
4949+ };
5050+}