mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +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.
34 lines
939 B
Nix
34 lines
939 B
Nix
{ lib, fetchFromGitHub, stdenvNoCC }:
|
||
|
||
stdenvNoCC.mkDerivation {
|
||
pname = "sniglet";
|
||
version = "2011-05-25";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "theleagueof";
|
||
repo = "sniglet";
|
||
rev = "5c6b0860bdd0d8c4f16222e4de3918c384db17c4";
|
||
hash = "sha256-fLT2hZT9o1Ka30EB/6oWwmalhVJ+swXLRFG99yRWd2c=";
|
||
};
|
||
|
||
installPhase = ''
|
||
runHook preInstall
|
||
|
||
install -D -m444 -t $out/share/fonts/truetype $src/*.ttf
|
||
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
|
||
|
||
runHook postInstall
|
||
'';
|
||
|
||
meta = {
|
||
description = "Fun rounded display face that’s great for headlines";
|
||
longDescription = ''
|
||
A rounded display face that’s great for headlines. It comes with a full
|
||
character set, so you can type in Icelandic or even French!
|
||
'';
|
||
homepage = "https://www.theleagueofmoveabletype.com/sniglet";
|
||
license = lib.licenses.ofl;
|
||
maintainers = with lib.maintainers; [ minijackson ];
|
||
};
|
||
}
|