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

26 lines
713 B
Nix
Raw Normal View History

2020-05-16 01:47:49 +02:00
{ lib, fetchzip }:
2015-10-18 18:48:15 +02:00
2017-08-10 21:43:49 +02:00
let
2020-05-16 01:47:49 +02:00
version = "1.0";
2017-08-10 21:43:49 +02:00
in fetchzip rec {
name = "oldsindhi-${version}";
2015-10-18 18:48:15 +02:00
2020-05-16 01:47:49 +02:00
url = "https://github.com/MihailJP/oldsindhi/releases/download/v${version}/OldSindhi-${version}.tar.xz";
2015-10-18 18:48:15 +02:00
2017-08-10 21:43:49 +02:00
postFetch = ''
2020-05-16 01:47:49 +02: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 18:48:15 +02:00
'';
2020-05-16 01:47:49 +02:00
sha256 = "03c483vbrwz2fpdfbys42fmik9788zxfmjmc4fgq4s2d0mraa0j1";
2017-08-10 21:43:49 +02:00
meta = with lib; {
homepage = "https://github.com/MihailJP/oldsindhi";
2015-10-18 18:48:15 +02:00
description = "Free Sindhi Khudabadi font";
maintainers = with maintainers; [ mathnerd314 ];
2020-05-16 01:47:49 +02:00
license = with licenses; [mit ofl];
2015-10-18 18:48:15 +02:00
platforms = platforms.all;
};
}