Merge pull request #279441 from wegank/fira-refactor

fira: refactor
This commit is contained in:
Pascal Wittmann 2024-04-19 11:15:46 +02:00 committed by GitHub
commit 65cd13090f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 31 additions and 16 deletions

View file

@ -1,20 +1,16 @@
{ lib, stdenvNoCC, fetchFromGitHub }:
{ lib
, stdenvNoCC
, fira-mono
}:
stdenvNoCC.mkDerivation rec {
pname = "fira";
version = "4.202";
src = fetchFromGitHub {
owner = "mozilla";
repo = "Fira";
rev = version;
hash = "sha256-HLReqgL0PXF5vOpwLN0GiRwnzkjGkEVEyOEV2Z4R0oQ=";
};
stdenvNoCC.mkDerivation {
pname = "fira-sans";
inherit (fira-mono) version src;
installPhase = ''
runHook preInstall
install --mode=-x -Dt $out/share/fonts/opentype otf/*.otf
install --mode=-x -Dt $out/share/fonts/opentype otf/FiraSans*.otf
runHook postInstall
'';

View file

@ -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;
};
}

View file

@ -28708,8 +28708,6 @@ with pkgs;
fanwood = callPackage ../data/fonts/fanwood { };
fira = callPackage ../data/fonts/fira { };
fira-code = callPackage ../data/fonts/fira-code { };
fira-code-symbols = callPackage ../data/fonts/fira-code/symbols.nix { };
fira-code-nerdfont = nerdfonts.override {
@ -28718,8 +28716,6 @@ with pkgs;
fira-go = callPackage ../data/fonts/fira-go { };
fira-mono = callPackage ../data/fonts/fira-mono { };
flat-remix-icon-theme = callPackage ../data/icons/flat-remix-icon-theme {
inherit (plasma5Packages) breeze-icons;
};