Skip to content

Commit 685bfce

Browse files
committedMay 16, 2017
fira-code-symbols: init at 20160811
1 parent 9c3b926 commit 685bfce

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
 

‎pkgs/data/fonts/fira-code/symbols.nix

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{ stdenv, runCommand, fetchurl, unzip }:
2+
3+
runCommand "fira-code-symbols-20160811" {
4+
src = fetchurl {
5+
url = "https://github.com/tonsky/FiraCode/files/412440/FiraCode-Regular-Symbol.zip";
6+
sha256 = "01sk8cmm50xg2vwf0ff212yi5gd2sxcb5l4i9g004alfrp7qaqxg";
7+
};
8+
buildInputs = [ unzip ];
9+
10+
meta = with stdenv.lib; {
11+
description = "FiraCode unicode ligature glyphs in private use area";
12+
longDescription = ''
13+
FiraCode uses ligatures, which some editors don’t support.
14+
This addition adds them as glyphs to the private unicode use area.
15+
See https://github.com/tonsky/FiraCode/issues/211.
16+
'';
17+
license = licenses.ofl;
18+
maintainers = [ maintainers.profpatsch ];
19+
homepage = "https://github.com/tonsky/FiraCode/issues/211#issuecomment-239058632";
20+
};
21+
} ''
22+
mkdir -p $out/share/fonts/opentype
23+
unzip "$src" -d $out/share/fonts/opentype
24+
''

‎pkgs/top-level/all-packages.nix

+1
Original file line numberDiff line numberDiff line change
@@ -12625,6 +12625,7 @@ with pkgs;
1262512625
fira = callPackage ../data/fonts/fira { };
1262612626

1262712627
fira-code = callPackage ../data/fonts/fira-code { };
12628+
fira-code-symbols = callPackage ../data/fonts/fira-code/symbols.nix { };
1262812629

1262912630
fira-mono = callPackage ../data/fonts/fira-mono { };
1263012631

0 commit comments

Comments
 (0)
Please sign in to comment.