Revert "ubuntu-font-family: use mkDerivation"

This reverts commit 73e9cb6a78edb3e2d6c460688554e8afcad61d32.

+12 -16
+12 -16
pkgs/data/fonts/ubuntu-font-family/default.nix
··· 1 - { lib, stdenv, fetchzip }: 1 + { lib, fetchzip }: 2 2 3 - stdenv.mkDerivation rec { 4 - pname = "ubuntu-font-family"; 5 - version = "0.83"; 3 + fetchzip { 4 + name = "ubuntu-font-family-0.83"; 6 5 7 - src = fetchzip { 8 - url = "https://assets.ubuntu.com/v1/fad7939b-${pname}-${version}.zip"; 9 - hash = "sha256-FAg1xn8Gcbwmuvqtg9SquSet4oTT9nqE+Izeq7ZMVcA="; 10 - }; 6 + url = "https://assets.ubuntu.com/v1/fad7939b-ubuntu-font-family-0.83.zip"; 11 7 12 - installPhase = '' 13 - install -D -m 644 -t "$out/share/fonts/truetype" *.ttf 8 + postFetch = '' 9 + mkdir -p $out/share/fonts 10 + unzip -j $downloadedFile \*.ttf -d $out/share/fonts/ubuntu 14 11 ''; 15 12 16 - outputHashMode = "recursive"; 17 - outputHash = "sha256-EEcYtOeOd2DKyRLo1kG7lk8euaFilCFMXMJNAosxHiQ="; 13 + sha256 = "090y665h4kf2bi623532l6wiwkwnpd0xds0jr7560xwfwys1hiqh"; 18 14 19 - meta = with lib; { 15 + meta = { 20 16 description = "Ubuntu Font Family"; 21 17 longDescription = "The Ubuntu typeface has been specially 22 18 created to complement the Ubuntu tone of voice. It has a 23 19 contemporary style and contains characteristics unique to 24 20 the Ubuntu brand that convey a precise, reliable and free attitude."; 25 21 homepage = "http://font.ubuntu.com/"; 26 - license = licenses.free; 27 - platforms = platforms.all; 28 - maintainers = with maintainers; [ antono ]; 22 + license = lib.licenses.free; 23 + platforms = lib.platforms.all; 24 + maintainers = [ lib.maintainers.antono ]; 29 25 }; 30 26 }