fira-code-symbols: make the font derivation fixed-output

- [x] make the font derivation fixed-output (https://github.com/NixOS/nixpkgs/issues/27754)
This commit is contained in:
volth 2017-08-11 13:43:18 +00:00 committed by GitHub
parent 973ebce996
commit dfde45d98e

View File

@ -1,11 +1,16 @@
{ stdenv, runCommand, fetchurl, unzip }: { stdenv, fetchzip }:
runCommand "fira-code-symbols-20160811" { fetchzip {
src = fetchurl { name = "fira-code-symbols-20160811";
url = "https://github.com/tonsky/FiraCode/files/412440/FiraCode-Regular-Symbol.zip";
sha256 = "01sk8cmm50xg2vwf0ff212yi5gd2sxcb5l4i9g004alfrp7qaqxg"; url = "https://github.com/tonsky/FiraCode/files/412440/FiraCode-Regular-Symbol.zip";
};
buildInputs = [ unzip ]; postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile -d $out/share/fonts/opentype
'';
sha256 = "19krsp22rin74ix0i19v4bh1c965g18xkmz1n55h6n6qimisnbkm";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "FiraCode unicode ligature glyphs in private use area"; description = "FiraCode unicode ligature glyphs in private use area";
@ -18,7 +23,4 @@ runCommand "fira-code-symbols-20160811" {
maintainers = [ maintainers.profpatsch ]; maintainers = [ maintainers.profpatsch ];
homepage = "https://github.com/tonsky/FiraCode/issues/211#issuecomment-239058632"; homepage = "https://github.com/tonsky/FiraCode/issues/211#issuecomment-239058632";
}; };
} '' }
mkdir -p $out/share/fonts/opentype
unzip "$src" -d $out/share/fonts/opentype
''