mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 22:04:20 +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.
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib, stdenvNoCC, fetchFromGitHub }:
|
||
|
||
stdenvNoCC.mkDerivation {
|
||
pname = "comic-mono-font";
|
||
version = "2020-12-28";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "dtinth";
|
||
repo = "comic-mono-font";
|
||
rev = "9a96d04cdd2919964169192e7d9de5012ef66de4";
|
||
hash = "sha256-q8NxrluWuH23FfRlntIS0MDdl3TkkGE7umcU2plS6eU=";
|
||
};
|
||
|
||
installPhase = ''
|
||
runHook preInstall
|
||
|
||
mkdir -p $out/share/fonts
|
||
cp *.ttf $out/share/fonts
|
||
|
||
mkdir -p $out/etc/fonts/conf.d
|
||
ln -s ${./comic-mono-weight.conf} $out/etc/fonts/conf.d/30-comic-mono.conf
|
||
|
||
runHook postInstall
|
||
'';
|
||
|
||
meta = with lib; {
|
||
description = "Legible monospace font that looks like Comic Sans";
|
||
longDescription = ''
|
||
A legible monospace font... the very typeface you’ve been trained to
|
||
recognize since childhood. This font is a fork of Shannon Miwa’s Comic
|
||
Shanns (version 1).
|
||
'';
|
||
homepage = "https://dtinth.github.io/comic-mono-font/";
|
||
|
||
license = licenses.mit;
|
||
maintainers = with maintainers; [ an-empty-string totoroot ];
|
||
platforms = platforms.all;
|
||
};
|
||
}
|