2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "vazir-code-font";
|
|
|
|
version = "1.1.2";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rastikerdar";
|
|
|
|
repo = "vazir-code-font";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-iBojse3eHr4ucZtPfpkN+mmO6sEExY8WcAallyPgMsI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} \;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2021-06-28 23:13:55 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/rastikerdar/vazir-code-font";
|
|
|
|
description = "A Persian (farsi) Monospaced Font for coding";
|
|
|
|
license = licenses.publicDomain;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.dearrude ];
|
|
|
|
};
|
|
|
|
}
|