2021-01-15 07:29:18 +00:00
|
|
|
|
{ lib, stdenv, fetchurl, unzip }:
|
2014-10-27 17:35:37 +00:00
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
version = "1.2.1";
|
|
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
|
pname = "meslo-lg";
|
2014-10-27 17:35:37 +00:00
|
|
|
|
|
|
|
|
|
meslo-lg = fetchurl {
|
|
|
|
|
url="https://github.com/andreberg/Meslo-Font/blob/master/dist/v${version}/Meslo%20LG%20v${version}.zip?raw=true";
|
2019-08-15 13:41:18 +01:00
|
|
|
|
name="${pname}-${version}";
|
2014-10-27 17:35:37 +00:00
|
|
|
|
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";
|
2019-08-15 13:41:18 +01:00
|
|
|
|
name="${pname}-${version}-dz";
|
2014-10-27 17:35:37 +00:00
|
|
|
|
sha256="0lnbkrvcpgz9chnvix79j6fiz36wj6n46brb7b1746182rl1l875";
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-10 00:27:23 +00:00
|
|
|
|
nativeBuildInputs = [ unzip ];
|
2014-10-27 17:35:37 +00:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
'';
|
|
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
|
outputHashMode = "recursive";
|
|
|
|
|
outputHash = "1cppf8sk6r5wjnnas9n6iyag6pj9jvaic66lvwpqg3742s5akx6x";
|
|
|
|
|
|
2014-10-27 17:35:37 +00:00
|
|
|
|
meta = {
|
|
|
|
|
description = "A customized version of Apple’s Menlo-Regular font";
|
2020-04-01 02:11:51 +01:00
|
|
|
|
homepage = "https://github.com/andreberg/Meslo-Font/";
|
2021-01-15 07:29:18 +00:00
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
|
maintainers = with lib.maintainers; [ balajisivaraman ];
|
|
|
|
|
platforms = with lib.platforms; all;
|
2014-10-27 17:35:37 +00:00
|
|
|
|
};
|
|
|
|
|
}
|