mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 10:24:07 +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.
42 lines
1.4 KiB
Nix
42 lines
1.4 KiB
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "mona-sans";
|
|
version = "1.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${finalAttrs.version}";
|
|
owner = "github";
|
|
repo = "mona-sans";
|
|
sha256 = "sha256-XvqLFzlgIqx9aZH2SEAtwMiuWgUiDi/gHGSpfreUHuk=";
|
|
};
|
|
|
|
installPhase = ''
|
|
install -D -m444 -t $out/share/fonts/opentype fonts/otf/*.otf
|
|
install -D -m444 -t $out/share/fonts/truetype fonts/ttf/*.ttf fonts/variable/*.ttf
|
|
'';
|
|
|
|
meta = {
|
|
description = "Variable font from GitHub";
|
|
homepage = "https://github.com/mona-sans";
|
|
changelog = "https://github.com/github/mona-sans/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.ofl;
|
|
longDescription = ''
|
|
A strong and versatile typeface, designed together with Degarism and
|
|
inspired by industrial-era grotesques. Mona Sans works well across
|
|
product, web, and print. Made to work well together with Mona Sans's
|
|
sidekick, Hubot Sans.
|
|
|
|
Mona Sans is a variable font. Variable fonts enable different variations
|
|
of a typeface to be incorporated into one single file, and are supported
|
|
by all major browsers, allowing for performance benefits and granular
|
|
design control of the typeface's weight, width, and slant.
|
|
'';
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|