nixpkgs/pkgs/data/fonts/samim-fonts/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
703 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchFromGitHub }:
2019-03-31 19:03:48 +01:00
stdenvNoCC.mkDerivation rec {
2019-03-31 19:03:48 +01:00
pname = "samim-fonts";
2023-02-04 00:33:43 +00:00
version = "4.0.5";
2019-03-31 19:03:48 +01:00
src = fetchFromGitHub {
owner = "rastikerdar";
repo = "samim-font";
rev = "v${version}";
2023-02-04 00:33:43 +00:00
hash = "sha256-DVBMsNOVAVwzlZ3cDus/3CSsC05bLZalQ2KeueEvwXs=";
};
installPhase = ''
runHook preInstall
2019-03-31 19:03:48 +01:00
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/samim-fonts {} \;
runHook postInstall
2019-03-31 19:03:48 +01:00
'';
meta = with lib; {
homepage = "https://github.com/rastikerdar/samim-font";
2019-03-31 19:03:48 +01:00
description = "Persian (Farsi) Font - فونت (قلم) فارسی صمیم";
license = licenses.ofl;
platforms = platforms.all;
2022-02-20 04:20:00 +00:00
maintainers = [ ];
2019-03-31 19:03:48 +01:00
};
}