3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/meslo-lg/default.nix
Balaji Sivaraman a76ee499a3 Add Meslo LG & Meslo LG DZ fonts.
Clean up description as per Nix standards.
2014-10-28 22:56:48 +05:30

43 lines
1.1 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
version = "1.2.1";
name = "meslo-lg";
meslo-lg = fetchurl {
url="https://github.com/andreberg/Meslo-Font/blob/master/dist/v${version}/Meslo%20LG%20v${version}.zip?raw=true";
name="${name}";
sha256="1l08mxlzaz3i5bamnfr49s2k4k23vdm64b8nz2ha33ysimkbgg6h";
};
meslo-lg-dz = fetchurl {
url="https://github.com/andreberg/Meslo-Font/blob/master/dist/v${version}/Meslo%20LG%20DZ%20v${version}.zip?raw=true";
name="${name}-dz";
sha256="0lnbkrvcpgz9chnvix79j6fiz36wj6n46brb7b1746182rl1l875";
};
buildInputs = [ unzip ];
sourceRoot = ".";
phases = [ "unpackPhase" "installPhase" ];
unpackPhase = ''
unzip -j ${meslo-lg}
unzip -j ${meslo-lg-dz}
'';
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
'';
meta = {
description = "A customized version of Apples Menlo-Regular font";
homepage = https://github.com/andreberg/Meslo-Font/;
license = stdenv.lib.licenses.asl20;
maintainers = with stdenv.lib.maintainers; [ balajisivaraman ];
platforms = with stdenv.lib.platforms; all;
};
}