2022-02-28 17:09:21 +01:00
|
|
|
{ lib, fetchurl, stdenv }:
|
2019-01-17 22:07:35 +01:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
let
|
2019-02-07 16:32:42 +01:00
|
|
|
pname = "agave";
|
2022-02-28 17:09:21 +01:00
|
|
|
version = "37";
|
2019-01-17 22:07:35 +01:00
|
|
|
|
2022-02-28 17:09:21 +01: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 = ".";
|
2019-01-17 22:07:35 +01:00
|
|
|
|
2022-02-28 17:09:21 +01:00
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D $srcs -t $out/share/fonts/truetype/
|
|
|
|
'';
|
2019-05-13 03:55:32 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
2019-01-17 22:07:35 +01:00
|
|
|
description = "truetype monospaced typeface designed for X environments";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://b.agaric.net/page/agave";
|
2019-01-17 22:07:35 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|