diff options
Diffstat (limited to 'nixpkgs/pkgs/data/fonts/unifont_upper/default.nix')
-rw-r--r-- | nixpkgs/pkgs/data/fonts/unifont_upper/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/data/fonts/unifont_upper/default.nix b/nixpkgs/pkgs/data/fonts/unifont_upper/default.nix new file mode 100644 index 000000000000..058e4e4191c4 --- /dev/null +++ b/nixpkgs/pkgs/data/fonts/unifont_upper/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenvNoCC, fetchurl }: + +stdenvNoCC.mkDerivation rec { + pname = "unifont_upper"; + version = "15.1.05"; + + src = fetchurl { + url = "mirror://gnu/unifont/unifont-${version}/${pname}-${version}.otf"; + hash = "sha256-A/Z/+IMNUH/3Ir3ewf/U2xqkkpZDUDKO+dlnRYt+7U0="; + }; + + dontUnpack = true; + + installPhase = '' + runHook preInstall + + install -Dm644 $src $out/share/fonts/opentype/unifont_upper.otf + + runHook postInstall + ''; + + meta = with lib; { + description = "Unicode font for glyphs above the Unicode Basic Multilingual Plane"; + homepage = "https://unifoundry.com/unifont/"; + + # Basically GPL2+ with font exception. + license = "https://unifoundry.com/LICENSE.txt"; + maintainers = [ maintainers.mathnerd314 maintainers.vrthra ]; + platforms = platforms.all; + }; +} |