fira-code 0.6 -> 1.100

This commit is contained in:
Eduard-Mihai Burtescu 2015-12-20 15:27:31 +02:00
parent 66b294dd48
commit 6f32a29f54

View File

@ -1,19 +1,21 @@
{ stdenv, fetchurl }: { stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "fira-code-${version}"; name = "fira-code-${version}";
version = "0.6"; version = "1.100";
src = fetchurl { src = fetchurl {
url = "https://github.com/tonsky/FiraCode/releases/download/${version}/FiraCode-Regular.otf"; url = "https://github.com/tonsky/FiraCode/releases/download/${version}/FiraCode_${version}.zip";
sha256 = "1blalxnmrxqlm5i74jhm8j29n0zsnmqi3gppxa9szjzv4x2k5s0a"; sha256 = "1fprryfy8b79ncya1jzbzbxs75kvr1zwinflr8sl3d2m1r5kl03x";
}; };
phases = [ "installPhase" ]; buildInputs = [ unzip ];
phases = [ "unpackPhase" "installPhase" ];
sourceRoot = ".";
installPhase = '' installPhase = ''
mkdir -p $out/share/fonts/opentype mkdir -p $out/share/fonts/opentype
cp -v $src $out/share/fonts/opentype/FiraCode-Regular.otf cp -r *.otf $out/share/fonts/opentype
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {