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

29 lines
769 B
Nix
Raw Normal View History

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