From 7855201741d7fac25d4458e448b1d63c3c8283d1 Mon Sep 17 00:00:00 2001 From: Noah Gitsham Date: Mon, 26 Aug 2024 23:08:11 +0100 Subject: [PATCH] fragment-mono: init at 1.21 --- pkgs/by-name/fr/fragment-mono/package.nix | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/fr/fragment-mono/package.nix diff --git a/pkgs/by-name/fr/fragment-mono/package.nix b/pkgs/by-name/fr/fragment-mono/package.nix new file mode 100644 index 0000000000000..6a860a27049f1 --- /dev/null +++ b/pkgs/by-name/fr/fragment-mono/package.nix @@ -0,0 +1,36 @@ +{ + lib, + stdenvNoCC, + fetchzip, +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "fragment-mono"; + version = "1.21"; + + src = fetchzip { + url = "https://github.com/weiweihuanghuang/fragment-mono/releases/download/${finalAttrs.version}/fragment-mono-${finalAttrs.version}.zip"; + hash = "sha256-H5s4rYDN2d0J+zVRgBzg8vfZXCA/jjHrGBV8o8Dxutc="; + }; + + installPhase = '' + runHook preInstall + + install -Dm644 fonts/ttf/*.ttf -t $out/share/fonts/truetype + + runHook postInstall + ''; + + meta = { + homepage = "https://github.com/weiweihuanghuang/fragment-mono"; + description = "Helvetica Monospace Coding Font"; + changelog = "https://github.com/weiweihuanghuang/fragment-mono/releases/tag/${finalAttrs.version}"; + longDescription = '' + Fragment Mono is a monospaced coding version of Helvetica created + by modifying and extending Nimbus Sans by URW Design Studio. + ''; + license = lib.licenses.ofl; + platforms = lib.platforms.all; + maintainers = [ lib.maintainers.noahgitsham ]; + }; +})