Provide NixOS module option to enable the paperless exporter. (#242084)
[NixPkgs.git] / pkgs / by-name / si / signwriting / package.nix
blob46a92e0454098271062fb9b1f313a4977078e2ff
2   lib,
3   runCommand,
4   fetchurl,
5 }:
7 runCommand "signwriting-1.1.4"
8   {
9     src1 = fetchurl {
10       url = "https://github.com/Slevinski/signwriting_2010_fonts/raw/61c8e7123a1168657b5d34d85266a637f67b9d2b/fonts/SignWriting%202010.ttf";
11       name = "SignWriting_2010.ttf";
12       sha256 = "1abjzykbjx2hal8mrxp51rvblv3q84akyn9qhjfaj20rwphkf5zj";
13     };
15     src2 = fetchurl {
16       url = "https://github.com/Slevinski/signwriting_2010_fonts/raw/61c8e7123a1168657b5d34d85266a637f67b9d2b/fonts/SignWriting%202010%20Filling.ttf";
17       name = "SignWriting_2010_Filling.ttf";
18       sha256 = "0am5wbf7jdy9szxkbsc5f3959cxvbj7mr0hy1ziqmkz02c6xjw2m";
19     };
21     outputHashAlgo = "sha256";
22     outputHashMode = "recursive";
23     outputHash = "0cn37s3lc7gbr8036l7ia2869qmxglkmgllh3r9q5j54g3sfjc7q";
25     meta = with lib; {
26       homepage = "https://github.com/Slevinski/signwriting_2010_fonts";
27       description = "Typeface for written sign languages";
28       maintainers = with maintainers; [ mathnerd314 ];
29       license = licenses.ofl;
30       platforms = platforms.all;
31     };
32   }
33   ''
34     mkdir -p $out/share/fonts/truetype
35     cp $src1 $out/share/fonts/truetype/SignWriting_2010.ttf
36     cp $src2 $out/share/fonts/truetype/SignWriting_2010_Filling.ttf
37   ''