forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
27 lines
840 B
Nix
27 lines
840 B
Nix
{ lib, stdenv, fetchzip }:
|
||
|
||
fetchzip {
|
||
name = "fira-code-symbols-20160811";
|
||
|
||
url = "https://github.com/tonsky/FiraCode/files/412440/FiraCode-Regular-Symbol.zip";
|
||
|
||
postFetch = ''
|
||
mkdir -p $out/share/fonts
|
||
unzip -j $downloadedFile -d $out/share/fonts/opentype
|
||
'';
|
||
|
||
sha256 = "19krsp22rin74ix0i19v4bh1c965g18xkmz1n55h6n6qimisnbkm";
|
||
|
||
meta = with lib; {
|
||
description = "FiraCode unicode ligature glyphs in private use area";
|
||
longDescription = ''
|
||
FiraCode uses ligatures, which some editors don’t support.
|
||
This addition adds them as glyphs to the private unicode use area.
|
||
See https://github.com/tonsky/FiraCode/issues/211.
|
||
'';
|
||
license = licenses.ofl;
|
||
maintainers = [ maintainers.Profpatsch ];
|
||
homepage = "https://github.com/tonsky/FiraCode/issues/211#issuecomment-239058632";
|
||
};
|
||
}
|