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

26 lines
713 B
Nix
Raw Normal View History

2020-05-15 23:47:49 +00:00
{ lib, fetchzip }:
2015-10-18 16:48:15 +00:00
2017-08-10 19:43:49 +00:00
let
2020-05-15 23:47:49 +00:00
version = "1.0";
2017-08-10 19:43:49 +00:00
in fetchzip rec {
name = "oldsindhi-${version}";
2015-10-18 16:48:15 +00:00
2020-05-15 23:47:49 +00:00
url = "https://github.com/MihailJP/oldsindhi/releases/download/v${version}/OldSindhi-${version}.tar.xz";
2015-10-18 16:48:15 +00:00
2017-08-10 19:43:49 +00:00
postFetch = ''
2020-05-15 23:47:49 +00:00
tar -xJf $downloadedFile --strip-components=1
install -m444 -Dt $out/share/fonts/truetype *.ttf
install -m444 -Dt $out/share/doc/${name} README *.txt
2015-10-18 16:48:15 +00:00
'';
2020-05-15 23:47:49 +00:00
sha256 = "03c483vbrwz2fpdfbys42fmik9788zxfmjmc4fgq4s2d0mraa0j1";
2017-08-10 19:43:49 +00:00
meta = with lib; {
homepage = "https://github.com/MihailJP/oldsindhi";
2015-10-18 16:48:15 +00:00
description = "Free Sindhi Khudabadi font";
maintainers = with maintainers; [ mathnerd314 ];
2020-05-15 23:47:49 +00:00
license = with licenses; [mit ofl];
2015-10-18 16:48:15 +00:00
platforms = platforms.all;
};
}