mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
38 lines
856 B
Nix
38 lines
856 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchzip,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "typodermic-public-domain";
|
|
version = "2024-04";
|
|
|
|
src = fetchzip {
|
|
url = "https://typodermicfonts.com/wp-content/uploads/2024/04/typodermic-public-domain-2024-04.zip";
|
|
hash = "sha256-grAAU/yL/Q1EyZtrvcgrB6bcXMZoNs7suVYaKibqBOE=";
|
|
curlOptsList = [
|
|
"--user-agent"
|
|
"Mozilla/5.0"
|
|
]; # unbreak their wordpress
|
|
stripRoot = false;
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/share/fonts
|
|
cp -a "$src/OpenType Fonts" "$out/share/fonts/opentype"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://typodermicfonts.com/";
|
|
description = "Vintage Typodermic fonts";
|
|
maintainers = with lib.maintainers; [ ehmry ];
|
|
license = lib.licenses.cc0;
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|