nixpkgs/pkgs/by-name/si/signwriting/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

33 lines
1.2 KiB
Nix

{ lib, runCommand, fetchurl }:
runCommand "signwriting-1.1.4" {
src1 = fetchurl {
url = "https://github.com/Slevinski/signwriting_2010_fonts/raw/61c8e7123a1168657b5d34d85266a637f67b9d2b/fonts/SignWriting%202010.ttf";
name = "SignWriting_2010.ttf";
sha256 = "1abjzykbjx2hal8mrxp51rvblv3q84akyn9qhjfaj20rwphkf5zj";
};
src2 = fetchurl {
url = "https://github.com/Slevinski/signwriting_2010_fonts/raw/61c8e7123a1168657b5d34d85266a637f67b9d2b/fonts/SignWriting%202010%20Filling.ttf";
name = "SignWriting_2010_Filling.ttf";
sha256 = "0am5wbf7jdy9szxkbsc5f3959cxvbj7mr0hy1ziqmkz02c6xjw2m";
};
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "0cn37s3lc7gbr8036l7ia2869qmxglkmgllh3r9q5j54g3sfjc7q";
meta = with lib; {
homepage = "https://github.com/Slevinski/signwriting_2010_fonts";
description = "Typeface for written sign languages";
maintainers = with maintainers; [ mathnerd314 ];
license = licenses.ofl;
platforms = platforms.all;
};
}
''
mkdir -p $out/share/fonts/truetype
cp $src1 $out/share/fonts/truetype/SignWriting_2010.ttf
cp $src2 $out/share/fonts/truetype/SignWriting_2010_Filling.ttf
''