Unverified Commit 2ddc88e4 authored by 7c6f434c's avatar 7c6f434c Committed by GitHub
Browse files

inconsolata: use stdenvNoCC, minimize git checkout (#474444)

parents 74d5c087 d9ecf5f0
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  stdenvNoCC,
  fetchFromGitHub,
}:

stdenv.mkDerivation {
stdenvNoCC.mkDerivation {
  pname = "inconsolata";
  version = "3.001";

@@ -12,11 +12,14 @@ stdenv.mkDerivation {
    owner = "google";
    repo = "fonts";
    rev = "0f203e3740b5eb77e0b179dff1e5869482676782";
    sha256 = "sha256-Q8eUJ0mkoB245Ifz5ulxx61x4+AqKhG0uqhWF2nSLpw=";
    hash = "sha256-4+aIjVO9/L4mCWGYqL1drFehHZTjRL25vTwh3c7GoFk=";
    rootDir = "ofl/inconsolata";
  };

  installPhase = ''
    install -m644 --target $out/share/fonts/truetype/inconsolata -D $src/ofl/inconsolata/static/*.ttf $src/ofl/inconsolata/*.ttf
    runHook preInstall
    install -m644 --target $out/share/fonts/truetype/inconsolata -D static/*.ttf *.ttf
    runHook postInstall
  '';

  meta = {