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

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

26 lines
713 B
Nix
Raw Normal View History

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