depot/third_party/nixpkgs/pkgs/data/fonts/dm-sans/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

28 lines
696 B
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "dm-sans";
version = "1.002";
src = fetchzip {
url = "https://github.com/googlefonts/dm-fonts/releases/download/v${version}/DeepMindSans_v${version}.zip";
stripRoot = false;
hash = "sha256-RSHHxiCac18qqF+hW5M3BbBcra4AQpNLLlUmhiWj9f8=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
mv *.ttf $out/share/fonts/truetype
runHook postInstall
'';
meta = {
description = "Geometric sans-serif typeface";
homepage = "https://github.com/googlefonts/dm-fonts";
license = lib.licenses.ofl;
maintainers = with lib.maintainers; [ gilice ];
};
}