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

- [x] make the font derivation fixed-output (https://github.com/NixOS/nixpkgs/issues/27754)

authored by volth and committed by GitHub dfde45d9 973ebce9

+13 -11
+13 -11
pkgs/data/fonts/fira-code/symbols.nix
··· 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"; ··· 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 - ''
··· 1 + { stdenv, fetchzip }: 2 3 + fetchzip { 4 + name = "fira-code-symbols-20160811"; 5 + 6 + url = "https://github.com/tonsky/FiraCode/files/412440/FiraCode-Regular-Symbol.zip"; 7 + 8 + postFetch = '' 9 + mkdir -p $out/share/fonts 10 + unzip -j $downloadedFile -d $out/share/fonts/opentype 11 + ''; 12 + 13 + sha256 = "19krsp22rin74ix0i19v4bh1c965g18xkmz1n55h6n6qimisnbkm"; 14 15 meta = with stdenv.lib; { 16 description = "FiraCode unicode ligature glyphs in private use area"; ··· 23 maintainers = [ maintainers.profpatsch ]; 24 homepage = "https://github.com/tonsky/FiraCode/issues/211#issuecomment-239058632"; 25 }; 26 + }