Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchzip,
|
|
nix-update-script,
|
|
}:
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "0xproto";
|
|
version = "2.500";
|
|
|
|
src =
|
|
let
|
|
underscoreVersion = builtins.replaceStrings [ "." ] [ "_" ] version;
|
|
in
|
|
fetchzip {
|
|
url = "https://github.com/0xType/0xProto/releases/download/${version}/0xProto_${underscoreVersion}.zip";
|
|
hash = "sha256-AmD5lUV341222gu/cCLnKWO87mjPn7gFkeklrV3OlOs=";
|
|
stripRoot = false;
|
|
};
|
|
|
|
# Exclude files in ZxProto/. The fonts are identical, with only the filenames changed.:
|
|
# https://github.com/0xType/0xProto/pull/112
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm644 -t $out/share/fonts/opentype/ *.otf ./No-Ligatures/*-NL.otf
|
|
install -Dm644 -t $out/share/fonts/truetype/ *.ttf ./No-Ligatures/*-NL.ttf
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Free and Open-source font for programming";
|
|
homepage = "https://github.com/0xType/0xProto";
|
|
license = lib.licenses.ofl;
|
|
maintainers = with lib.maintainers; [ edswordsmith ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|