nixpkgs/pkgs/data/fonts/meslo-lg/default.nix
ajs124 89fbc3fea9 maintainers: remove balajisivaraman
no github account linked
2022-06-29 00:54:59 +02:00

46 lines
1.2 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.

{ lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
version = "1.2.1";
pname = "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="${pname}-${version}";
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="${pname}-${version}-dz";
sha256="0lnbkrvcpgz9chnvix79j6fiz36wj6n46brb7b1746182rl1l875";
};
nativeBuildInputs = [ unzip ];
sourceRoot = ".";
unpackPhase = ''
unzip -j ${meslo-lg}
unzip -j ${meslo-lg-dz}
'';
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
'';
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "1cppf8sk6r5wjnnas9n6iyag6pj9jvaic66lvwpqg3742s5akx6x";
meta = {
description = "A customized version of Apples Menlo-Regular font";
homepage = "https://github.com/andreberg/Meslo-Font/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ];
platforms = with lib.platforms; all;
};
}