about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/oldsindhi/default.nix
blob: e0e783fd80a505fd01517c4e9921b152ad1697ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, fetchzip }:

let
  version = "1.0";
in fetchzip rec {
  name = "oldsindhi-${version}";

  url = "https://github.com/MihailJP/oldsindhi/releases/download/v${version}/OldSindhi-${version}.tar.xz";

  postFetch = ''
    tar -xJf $downloadedFile --strip-components=1
    install -m444 -Dt $out/share/fonts/truetype *.ttf
    install -m444 -Dt $out/share/doc/${name} README *.txt
  '';

  sha256 = "03c483vbrwz2fpdfbys42fmik9788zxfmjmc4fgq4s2d0mraa0j1";

  meta = with lib; {
    homepage = "https://github.com/MihailJP/oldsindhi";
    description = "Free Sindhi Khudabadi font";
    maintainers = with maintainers; [ mathnerd314 ];
    license = with licenses; [mit ofl];
    platforms = platforms.all;
  };
}