depot/third_party/nixpkgs/pkgs/data/fonts/smiley-sans/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

31 lines
1 KiB
Nix

{ lib, stdenvNoCC, fetchzip, nix-update-script }:
stdenvNoCC.mkDerivation rec {
pname = "smiley-sans";
version = "1.1.1";
src = fetchzip {
url = "https://github.com/atelier-anchor/smiley-sans/releases/download/v${version}/smiley-sans-v${version}.zip";
sha256 = "sha256-/lsAZRHgmx1TMjm2O5Z0IOiHQM8LKJPXcBKZrlXt3RA=";
stripRoot = false;
};
installPhase = ''
runHook preInstall
install -Dm644 -t $out/share/fonts/opentype *.otf
install -Dm644 -t $out/share/fonts/truetype *.ttf
install -Dm644 -t $out/share/fonts/woff2 *.woff2
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "A condensed and oblique Chinese typeface seeking a visual balance between the humanist and the geometric";
homepage = "https://atelier-anchor.com/typefaces/smiley-sans/";
changelog = "https://github.com/atelier-anchor/smiley-sans/blob/main/CHANGELOG.md";
license = licenses.ofl;
maintainers = with maintainers; [ candyc1oud ];
platforms = platforms.all;
};
}