nixpkgs/pkgs/by-name/vo/vollkorn/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

34 lines
1008 B
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "vollkorn";
version = "4.105";
src = fetchzip {
url = "http://vollkorn-typeface.com/download/vollkorn-${builtins.replaceStrings ["."] ["-"] version}.zip";
stripRoot = false;
hash = "sha256-oG79GgCwCavbMFAPakza08IPmt13Gwujrkc/NKTai7g=";
};
installPhase = ''
runHook preInstall
mkdir -pv $out/share/{doc/${pname}-${version},fonts/{opentype,truetype,WOFF,WOFF2}}
cp -v {Fontlog,OFL-FAQ,OFL}.txt $out/share/doc/${pname}-${version}/
cp -v PS-OTF/*.otf $out/share/fonts/opentype
cp -v TTF/*.ttf $out/share/fonts/truetype
cp -v WOFF/*.woff $out/share/fonts/WOFF
cp -v WOFF2/*.woff2 $out/share/fonts/WOFF2
runHook postInstall
'';
meta = with lib; {
homepage = "http://vollkorn-typeface.com/";
description = "Free and healthy typeface for bread and butter use";
license = licenses.ofl;
platforms = platforms.all;
maintainers = [ maintainers.schmittlauch ];
};
}