hack-font: use installFonts

This commit is contained in:
SystematicError
2026-03-28 12:23:28 +00:00
parent d69e3ad79a
commit 254ce4fd60
+6 -7
View File
@@ -2,24 +2,23 @@
lib,
stdenvNoCC,
fetchzip,
installFonts,
}:
stdenvNoCC.mkDerivation rec {
pname = "hack-font";
version = "3.003";
outputs = [
"out"
];
src = fetchzip {
url = "https://github.com/chrissimpkins/Hack/releases/download/v${version}/Hack-v${version}-ttf.zip";
hash = "sha256-SxF4kYp9aL/9L9EUniquFadzWt/+PcvhUQOIOvCrFRM=";
};
installPhase = ''
runHook preInstall
install -Dm644 *.ttf -t $out/share/fonts/truetype
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
meta = {
description = "Typeface designed for source code";