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