diff options
author | Pascal Wittmann <mail@pascal-wittmann.de> | 2024-04-19 11:15:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 11:15:46 +0200 |
commit | 65cd13090f2316d49547a1cc1f6991d2da85395b (patch) | |
tree | 852613646b66e1e53ff1c84597dbec18fa0f8eeb /pkgs/by-name/fi | |
parent | bcd0b9f08d4fbb6dbb2c6501f57ff00fbe1256ce (diff) | |
parent | 4d22cc500f34560853d561d80f4aa980d98efd10 (diff) |
Merge pull request #279441 from wegank/fira-refactor
fira: refactor
Diffstat (limited to 'pkgs/by-name/fi')
-rw-r--r-- | pkgs/by-name/fi/fira-mono/package.nix | 33 | ||||
-rw-r--r-- | pkgs/by-name/fi/fira-sans/package.nix | 33 | ||||
-rw-r--r-- | pkgs/by-name/fi/fira/package.nix | 23 |
3 files changed, 89 insertions, 0 deletions
diff --git a/pkgs/by-name/fi/fira-mono/package.nix b/pkgs/by-name/fi/fira-mono/package.nix new file mode 100644 index 0000000000000..5d059dbf88e08 --- /dev/null +++ b/pkgs/by-name/fi/fira-mono/package.nix @@ -0,0 +1,33 @@ +{ lib, stdenvNoCC, fetchzip }: + +stdenvNoCC.mkDerivation rec { + pname = "fira-mono"; + version = "4.202"; + + src = fetchzip { + url = "https://github.com/mozilla/Fira/archive/${version}.zip"; + hash = "sha256-HLReqgL0PXF5vOpwLN0GiRwnzkjGkEVEyOEV2Z4R0oQ="; + }; + + installPhase = '' + runHook preInstall + + install -Dm644 otf/FiraMono*.otf -t $out/share/fonts/opentype + + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://mozilla.github.io/Fira/"; + description = "Monospace font for Firefox OS"; + longDescription = '' + Fira Mono is a monospace font designed by Erik Spiekermann, + Ralph du Carrois, Anja Meiners and Botio Nikoltchev of Carrois + Type Design for Mozilla Firefox OS. Available in Regular, + Medium, and Bold. + ''; + license = licenses.ofl; + maintainers = [ maintainers.rycee ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/by-name/fi/fira-sans/package.nix b/pkgs/by-name/fi/fira-sans/package.nix new file mode 100644 index 0000000000000..c07cc15c97cce --- /dev/null +++ b/pkgs/by-name/fi/fira-sans/package.nix @@ -0,0 +1,33 @@ +{ lib +, stdenvNoCC +, fira-mono +}: + +stdenvNoCC.mkDerivation { + pname = "fira-sans"; + inherit (fira-mono) version src; + + installPhase = '' + runHook preInstall + + install --mode=-x -Dt $out/share/fonts/opentype otf/FiraSans*.otf + + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://mozilla.github.io/Fira/"; + description = "Sans-serif font for Firefox OS"; + longDescription = '' + Fira Sans is a sans-serif font designed by Erik Spiekermann, + Ralph du Carrois, Anja Meiners and Botio Nikoltchev of Carrois + Type Design for Mozilla Firefox OS. It is closely related to + Spiekermann's FF Meta typeface. Available in Two, Four, Eight, + Hair, Thin, Ultra Light, Extra Light, Light, Book, Regular, + Medium, Semi Bold, Bold, Extra Bold, Heavy weights with + corresponding italic versions. + ''; + license = licenses.ofl; + platforms = platforms.all; + }; +} diff --git a/pkgs/by-name/fi/fira/package.nix b/pkgs/by-name/fi/fira/package.nix new file mode 100644 index 0000000000000..405189ba2e99f --- /dev/null +++ b/pkgs/by-name/fi/fira/package.nix @@ -0,0 +1,23 @@ +{ lib +, symlinkJoin +, fira-mono +, fira-sans +}: + +symlinkJoin rec { + pname = "fira"; + inherit (fira-mono) version; + name = "${pname}-${version}"; + + paths = [ + fira-mono + fira-sans + ]; + + meta = { + description = "Fira font family including Fira Sans and Fira Mono"; + homepage = "https://mozilla.github.io/Fira/"; + license = lib.licenses.ofl; + platforms = lib.platforms.all; + }; +} |