mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
29 lines
698 B
Nix
29 lines
698 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 = "A geometric sans-serif typeface";
|
|
homepage = "https://github.com/googlefonts/dm-fonts";
|
|
license = lib.licenses.ofl;
|
|
maintainers = with lib.maintainers; [ gilice ];
|
|
};
|
|
}
|