nixpkgs-suyu/pkgs/data/fonts/oldsindhi/default.nix

27 lines
710 B
Nix
Raw Normal View History

{ lib, fetchzip, p7zip }:
2015-10-18 18:48:15 +02:00
2017-08-10 21:43:49 +02:00
let
2015-10-18 18:48:15 +02:00
version = "0.1";
2017-08-10 21:43:49 +02:00
in fetchzip rec {
name = "oldsindhi-${version}";
2015-10-18 18:48:15 +02:00
2017-08-10 21:43:49 +02:00
url = "https://github.com/MihailJP/oldsindhi/releases/download/0.1/OldSindhi-0.1.7z";
2015-10-18 18:48:15 +02:00
2017-08-10 21:43:49 +02:00
postFetch = ''
${p7zip}/bin/7z x $downloadedFile
2015-10-18 18:48:15 +02:00
install -m444 -Dt $out/share/fonts/truetype OldSindhi/*.ttf
install -m444 -Dt $out/share/doc/${name} OldSindhi/README OldSindhi/*.txt
2015-10-18 18:48:15 +02:00
'';
sha256 = "0d4l9cg2vmh2pvnqsla8mgcwvc7wjxzcabhlli6633h3ifj2yp7b";
2017-08-10 21:43:49 +02:00
meta = with lib; {
2015-10-18 18:48:15 +02:00
homepage = https://github.com/MihailJP/oldsindhi;
description = "Free Sindhi Khudabadi font";
maintainers = with maintainers; [ mathnerd314 ];
license = licenses.bsd2;
platforms = platforms.all;
};
}