diff options
Diffstat (limited to 'pkgs/by-name/fi')
-rw-r--r-- | pkgs/by-name/fi/files-cli/package.nix | 6 | ||||
-rw-r--r-- | pkgs/by-name/fi/fira-math/package.nix | 49 |
2 files changed, 52 insertions, 3 deletions
diff --git a/pkgs/by-name/fi/files-cli/package.nix b/pkgs/by-name/fi/files-cli/package.nix index e18913b0afbed..bc7a004d46757 100644 --- a/pkgs/by-name/fi/files-cli/package.nix +++ b/pkgs/by-name/fi/files-cli/package.nix @@ -7,16 +7,16 @@ buildGoModule rec { pname = "files-cli"; - version = "2.12.22"; + version = "2.12.24"; src = fetchFromGitHub { repo = "files-cli"; owner = "files-com"; rev = "v${version}"; - hash = "sha256-xjHPlZenkxZCJ9KwjyWsrAd1LiQRRuS9Z2fsRdHV7eA="; + hash = "sha256-Ne386WK0icQcsW2tqfkiW5udI7Umq10v+954bfjQiHM="; }; - vendorHash = "sha256-JzIafJOSlZUWwewp6sJaM7x3U+vZMdY4gBx/NfI7p5I="; + vendorHash = "sha256-en2gLeYZr7MwZnz47qAxQo48ZIsDZPXoCkMV2c4LHSU="; ldflags = [ "-s" diff --git a/pkgs/by-name/fi/fira-math/package.nix b/pkgs/by-name/fi/fira-math/package.nix new file mode 100644 index 0000000000000..56bcb916d2d40 --- /dev/null +++ b/pkgs/by-name/fi/fira-math/package.nix @@ -0,0 +1,49 @@ +{ lib, fetchFromGitHub, fira-math, python3, stdenvNoCC }: + +let + pname = "fira-math"; + date = "2023-10-09"; + version = "0.3.4-unstable-${date}"; +in stdenvNoCC.mkDerivation { + inherit pname version; + + src = fetchFromGitHub { + owner = "firamath"; + repo = "firamath"; + rev = "4bd85bc943eb6a194cfc090f7e194aa27d8f8419"; + hash = "sha256-1skakzdvzf7nX2un7b9aCSj1pzBAQuueZEU7B1nARa4="; + }; + + nativeBuildInputs = [ + (python3.withPackages (ps: with ps; [ + fontmake + fonttools + glyphslib + toml + ])) + ]; + + buildPhase = '' + runHook preBuild + + python scripts/build.py + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + install -D "build/"*.otf -t "$out/share/fonts/opentype/" + + runHook postInstall + ''; + + meta = with lib; { + description = "Math font with Unicode math support based on FiraSans and FiraGO"; + homepage = "https://github.com/firamath/firamath"; + license = licenses.ofl; + maintainers = [ maintainers.loicreynier ]; + platforms = platforms.all; + }; +} |