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