diff --git a/pkgs/data/fonts/pecita/default.nix b/pkgs/data/fonts/pecita/default.nix index b57cf22569d2..a90ff42a8e2a 100644 --- a/pkgs/data/fonts/pecita/default.nix +++ b/pkgs/data/fonts/pecita/default.nix @@ -1,18 +1,24 @@ -{stdenv, fetchzip}: +{ stdenv, fetchurl }: let + version = "5.4"; -in fetchzip rec { + +in + +fetchurl rec { name = "pecita-${version}"; - url = "http://archive.rycee.net/pecita/${name}.tar.xz"; + url = "http://pecita.eu/b/Pecita.otf"; + + downloadToTemp = true; postFetch = '' - tar xJvf $downloadedFile --strip-components=1 mkdir -p $out/share/fonts/opentype - cp -v Pecita.otf $out/share/fonts/opentype/Pecita.otf + cp -v $downloadedFile $out/share/fonts/opentype/Pecita.otf ''; + recursiveHash = true; sha256 = "0pwm20f38lcbfkdqkpa2ydpc9kvmdg0ifc4h2dmipsnwbcb5rfwm"; meta = with stdenv.lib; {