2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
majorVersion = "0";
|
|
|
|
minorVersion = "200";
|
|
|
|
in
|
2023-04-29 16:46:19 +00:00
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
2023-02-02 18:25:31 +00:00
|
|
|
pname = "ferrum";
|
|
|
|
version = "${majorVersion}.${minorVersion}";
|
|
|
|
|
|
|
|
src = fetchzip {
|
2023-04-29 16:46:19 +00:00
|
|
|
url = "https://dotcolon.net/download/fonts/${finalAttrs.pname}_${majorVersion}${minorVersion}.zip";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-NDJwgFWZgyhMkGRWlY55l2omEw6ju3e3dHCEsWNzQIc=";
|
|
|
|
stripRoot = false;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-04-29 16:46:19 +00:00
|
|
|
homepage = "http://dotcolon.net/font/${finalAttrs.pname}/";
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "A decorative font";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = with maintainers; [ leenaars minijackson ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.cc0;
|
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
})
|