2023-02-02 18:25:31 +00:00
|
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
pname = "samim-fonts";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
version = "4.0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "rastikerdar";
|
|
|
|
|
repo = "samim-font";
|
|
|
|
|
rev = "v${version}";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
hash = "sha256-DVBMsNOVAVwzlZ3cDus/3CSsC05bLZalQ2KeueEvwXs=";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/samim-fonts {} \;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
homepage = "https://github.com/rastikerdar/samim-font";
|
|
|
|
|
description = "A Persian (Farsi) Font - فونت (قلم) فارسی صمیم";
|
|
|
|
|
license = licenses.ofl;
|
|
|
|
|
platforms = platforms.all;
|
2022-02-21 08:47:16 +00:00
|
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
}
|