nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchFromGitHub }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "nahid-fonts";
5 version = "0.3.0";
6
7 src = fetchFromGitHub {
8 owner = "rastikerdar";
9 repo = "nahid-font";
10 rev = "v${version}";
11 hash = "sha256-r8/W0/pJV6OX954spIITvW7M6lIbZRpbsvEHErnXglg=";
12 };
13
14 installPhase = ''
15 runHook preInstall
16
17 find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/nahid-fonts {} \;
18
19 runHook postInstall
20 '';
21
22 meta = with lib; {
23 homepage = "https://github.com/rastikerdar/nahid-font";
24 description = "A Persian (Farsi) Font - قلم (فونت) فارسی ناهید";
25 license = licenses.free;
26 platforms = platforms.all;
27 maintainers = [ ];
28 };
29}