inconsolata: use stdenvNoCC, minimize git checkout
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
{
|
||||
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 = {
|
||||
|
||||
Reference in New Issue
Block a user