Unverified Commit 2a67c8fc authored by Vlad M.'s avatar Vlad M. Committed by GitHub
Browse files

hack-font: use installFonts (#504355)

parents 242111a9 254ce4fd
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -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";