mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 23:03:41 +00:00
571c71e6f7
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.
32 lines
1.0 KiB
Nix
32 lines
1.0 KiB
Nix
{ lib, stdenvNoCC, fetchzip, nix-update-script }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "smiley-sans";
|
|
version = "2.0.1";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/atelier-anchor/smiley-sans/releases/download/v${version}/smiley-sans-v${version}.zip";
|
|
sha256 = "sha256-p6DwX5MBPemAfV99L9ayLkEWro31ip4tf+wBQr8mkbs=";
|
|
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 = "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 = [ ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|