2022-03-05 16:20:37 +00:00
|
|
|
{ lib, fetchurl, stdenv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "agave";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "37";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
mkAg = name: hash: fetchurl {
|
|
|
|
url = "https://github.com/agarick/agave/releases/download/v${version}/Agave-${name}.ttf";
|
|
|
|
sha256 = hash;
|
|
|
|
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 = ".";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D $srcs -t $out/share/fonts/truetype/
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "truetype monospaced typeface designed for X environments";
|
|
|
|
homepage = "https://b.agaric.net/page/agave";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|