Unverified Commit 785a055f authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

borg-sans-mono: use installFonts hook (#505708)

parents afe01848 88d506f7
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenvNoCC,
  fetchzip,
  installFonts,
}:

stdenvNoCC.mkDerivation {
@@ -14,19 +15,13 @@ stdenvNoCC.mkDerivation {
    hash = "sha256-nn7TGeVm45t7QI8+eEREBTFg9aShYYKtdEYEwQwO2fQ=";
  };

  installPhase = ''
    runHook preInstall

    install -Dm644 *.ttf -t $out/share/fonts/truetype

    runHook postInstall
  '';
  nativeBuildInputs = [ installFonts ];

  meta = {
    description = "Droid Sans Mono Slashed + Hasklig-style ligatures";
    homepage = "https://github.com/marnen/borg-sans-mono";
    license = lib.licenses.asl20;
    platforms = lib.platforms.all;
    maintainers = [ ];
    maintainers = with lib.maintainers; [ pancaek ];
  };
}