agave: 35 -> 37 (#157536)
bold variant (basics covered) slashed variant available but uses same name
This commit is contained in:
parent
aa688ca64e
commit
44174de622
|
@ -1,20 +1,31 @@
|
||||||
{ lib, fetchurl }:
|
{ lib, fetchurl, stdenv }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "agave";
|
pname = "agave";
|
||||||
version = "35";
|
version = "37";
|
||||||
in fetchurl {
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
url = "https://github.com/agarick/agave/releases/download/v${version}/Agave-Regular.ttf";
|
|
||||||
|
|
||||||
downloadToTemp = true;
|
mkAg = name: hash: fetchurl {
|
||||||
recursiveHash = true;
|
url = "https://github.com/agarick/agave/releases/download/v${version}/Agave-${name}.ttf";
|
||||||
postFetch = ''
|
sha256 = hash;
|
||||||
install -D $downloadedFile $out/share/fonts/truetype/Agave-Regular.ttf
|
name = "Agave-${name}.ttf";
|
||||||
|
};
|
||||||
|
# There are slashed variants, but with same name so only bundle the default versions for now:
|
||||||
|
fonts = [
|
||||||
|
(mkAg "Regular" "sha256-vX1VhEgqy9rQ7hPmAgBGxKyIs2QSAYqZC/mL/2BIOrA=")
|
||||||
|
(mkAg "Bold" "sha256-Ax/l/RKyc03law0ThiLac/7HHV4+YxibKzcZnjZs6VI=")
|
||||||
|
];
|
||||||
|
|
||||||
|
in stdenv.mkDerivation {
|
||||||
|
inherit pname version;
|
||||||
|
srcs = fonts;
|
||||||
|
sourceRoot = ".";
|
||||||
|
|
||||||
|
dontUnpack = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -D $srcs -t $out/share/fonts/truetype/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sha256 = "10shwsl1illdafnc352j439lklrxksip1vlh4jc934cr9qf4c1fz";
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "truetype monospaced typeface designed for X environments";
|
description = "truetype monospaced typeface designed for X environments";
|
||||||
homepage = "https://b.agaric.net/page/agave";
|
homepage = "https://b.agaric.net/page/agave";
|
||||||
|
|
Loading…
Reference in a new issue