nixpkgs/pkgs/by-name/b6/b612/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

45 lines
1.5 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib, stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation rec {
pname = "b612";
version = "1.008";
src = fetchFromGitHub {
owner = "polarsys";
repo = "b612";
rev = version;
hash = "sha256-uyBC8UNOwztCHXhR9XZuWDwrty0eClbo0E+gI1PmjEg=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
mv fonts/ttf/*.ttf $out/share/fonts/truetype
runHook postInstall
'';
meta = with lib; {
homepage = "https://b612-font.com/";
description = "Highly legible font family for use on aircraft cockpit screens";
longDescription = ''
B612 is the result of a research project initiated by Airbus. The font
was designed by Nicolas Chauveau and Thomas Paillot (intactile DESIGN) with the
support of JeanLuc Vinot (ENAC). Prior research by JeanLuc Vinot (DGAC/DSNA)
and Sylvie Athènes (Université de Toulouse III). The challenge for the
"Aeronautical Font" was to improve the display of information on the cockpit
screens, in particular in terms of legibility and comfort of reading, and to
optimize the overall homogeneity of the cockpit.
Intactile DESIGN was hired to work on the design of eight typographic
variants of the font. This one, baptized B612 in reference to the
imaginary asteroid of the aviator SaintExupéry, benefited from a complete
hinting on all the characters.
'';
license = with licenses; [ ofl epl10 bsd3 ];
maintainers = with maintainers; [ leenaars ];
platforms = platforms.all;
};
}