2024-01-02 11:29:13 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
let version = "0.91.12"; in
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "open-dyslexic";
|
2024-01-02 11:29:13 +00:00
|
|
|
inherit version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "antijingoist";
|
|
|
|
repo = "opendyslexic";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-a8hh8NGt5djj9EC7ChO3SnnjuYMOryzbHWTK4gC/vIw=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
install -Dm644 compiled/*.otf -t $out/share/fonts/opentype
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://opendyslexic.org/";
|
|
|
|
description = "Font created to increase readability for readers with dyslexia";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = licenses.ofl;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = [ maintainers.rycee ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
}
|