at 16.09-beta 34 lines 946 B view raw
1{ stdenv, fetchurl, unzip }: 2 3stdenv.mkDerivation rec { 4 name = "fira-code-${version}"; 5 version = "1.200"; 6 7 src = fetchurl { 8 url = "https://github.com/tonsky/FiraCode/releases/download/${version}/FiraCode_${version}.zip"; 9 sha256 = "1zja7fsfh3xx2qv9wv46997d02l5nm483b5s39jpmxfracj8qam7"; 10 }; 11 12 sourceRoot = "otf"; 13 14 buildInputs = [ unzip ]; 15 phases = [ "unpackPhase" "installPhase" ]; 16 17 installPhase = '' 18 mkdir -p $out/share/fonts/opentype 19 cp -v *.otf $out/share/fonts/opentype 20 ''; 21 22 meta = with stdenv.lib; { 23 homepage = https://github.com/tonsky/FiraCode; 24 description = "Monospace font with programming ligatures"; 25 longDescription = '' 26 Fira Code is a monospace font extending the Fira Mono font with 27 a set of ligatures for common programming multi-character 28 combinations. 29 ''; 30 license = licenses.ofl; 31 maintainers = [ maintainers.rycee ]; 32 platforms = platforms.all; 33 }; 34}