-
-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d07b69
commit 7855201
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
}) |