Commit 766cd7ab authored by Sigmanificient's avatar Sigmanificient
Browse files

encode-sans: use installFonts

parent 6c723ca1
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenvNoCC,
  fetchzip,
  installFonts,
}:

stdenvNoCC.mkDerivation rec {
@@ -13,13 +14,10 @@ stdenvNoCC.mkDerivation rec {
    hash = "sha256-TPAUc5msAUgJZHibjgYaS2TOuzKFy0rje9ZQTXE6s+w=";
  };

  installPhase = ''
    runHook preInstall
  nativeBuildInputs = [ installFonts ];

    install -Dm644 *.ttf                 -t $out/share/fonts/truetype
  postInstall = ''
    install -Dm644 README.md FONTLOG.txt -t $out/share/doc/${pname}-${version}

    runHook postInstall
  '';

  meta = {