nixpkgs/pkgs/data/fonts/nanum-gothic-coding/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
815 B
Nix
Raw Normal View History

# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
{ lib, fetchzip }:
2019-04-30 13:10:10 +03:00
let
version = "VER2.5";
fullName = "NanumGothicCoding-2.5";
in (fetchzip {
2019-04-30 13:10:10 +03:00
name = "nanum-gothic-coding";
url = "https://github.com/naver/nanumfont/releases/download/${version}/${fullName}.zip";
sha256 = "0b3pkhd6xn6393zi0dhj3ah08w1y1ji9fl6584bi0c8lanamf2pc";
meta = with lib; {
2019-04-30 13:10:10 +03:00
description = "A contemporary monospaced sans-serif typeface with a warm touch";
homepage = "https://github.com/naver/nanumfont";
2019-04-30 13:10:10 +03:00
license = licenses.ofl;
platforms = platforms.all;
2022-02-20 07:20:00 +03:00
maintainers = with maintainers; [ ];
2019-04-30 13:10:10 +03:00
};
}).overrideAttrs (_: {
postFetch = ''
mkdir -p $out/share/fonts/NanumGothicCoding
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/NanumGothicCoding
'';
})