nasin-nanpa: 2.5.1 -> 3.1.0

This commit is contained in:
Kylie McClain 2024-02-07 15:39:06 -05:00
parent e5c0436619
commit 375b4e2f8e
No known key found for this signature in database

View File

@ -2,29 +2,18 @@
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "nasin-nanpa"; pname = "nasin-nanpa";
version = "2.5.1"; version = "3.1.0";
srcs = [ src = fetchurl {
(fetchurl { url = "https://github.com/ETBCOR/nasin-nanpa/releases/download/n${version}/nasin-nanpa-${version}.otf";
name = "nasin-nanpa.otf"; hash = "sha256-remTvvOt7kpvTdq9H8tFI2yU+BtqePXlDDLQv/jtETU=";
url = "https://github.com/ETBCOR/nasin-nanpa/releases/download/n${version}/nasin-nanpa-${version}.otf"; };
hash = "sha256-++uOrqFzQ6CB/OPEmBivpjMfAtFk3PSsCNpFBjOtGEg=";
})
(fetchurl {
name = "nasin-nanpa-lasina-kin.otf";
url = "https://github.com/ETBCOR/nasin-nanpa/releases/download/n${version}/nasin-nanpa-${version}-lasina-kin.otf";
hash = "sha256-4WIX74y2O4NaKi/JQrgTbOxlKDQKJ/F9wkQuoOdWuTI=";
})
];
dontUnpack = true; dontUnpack = true;
installPhase = '' installPhase = ''
mkdir -p $out/share/fonts/opentype mkdir -p $out/share/fonts/opentype
for src in $srcs; do cp $src $out/share/fonts/opentype/nasin-nanpa.otf
file=$(stripHash $src)
cp $src $out/share/fonts/opentype/$file
done
''; '';
meta = with lib; { meta = with lib; {