nixpkgs/pkgs/data/fonts/ubuntu-font-family/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
912 B
Nix
Raw Normal View History

2023-01-25 12:34:24 +01:00
{ lib, stdenvNoCC, fetchzip }:
2012-06-23 00:55:47 +02:00
2023-01-25 12:34:24 +01:00
stdenvNoCC.mkDerivation rec {
pname = "ubuntu-font-family";
version = "0.83";
2012-06-23 00:55:47 +02:00
2023-01-25 12:34:24 +01:00
src = fetchzip {
url = "https://assets.ubuntu.com/v1/fad7939b-ubuntu-font-family-${version}.zip";
hash = "sha256-FAg1xn8Gcbwmuvqtg9SquSet4oTT9nqE+Izeq7ZMVcA=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/ubuntu
2023-01-25 12:34:24 +01:00
mv *.ttf $out/share/fonts/ubuntu
2012-06-23 00:55:47 +02:00
2023-01-25 12:34:24 +01:00
runHook postInstall
'';
2012-06-23 00:55:47 +02:00
meta = with lib; {
description = "Ubuntu Font Family";
longDescription = "The Ubuntu typeface has been specially
created to complement the Ubuntu tone of voice. It has a
contemporary style and contains characteristics unique to
the Ubuntu brand that convey a precise, reliable and free attitude.";
homepage = "http://font.ubuntu.com/";
license = licenses.free;
platforms = platforms.all;
maintainers = [ maintainers.antono ];
2012-06-23 00:55:47 +02:00
};
}