opensans-ttf: make the font derivations fixed-output (#28126)

- [x] dead link fixed
- [x] make the font derivations fixed-output (https://github.com/NixOS/nixpkgs/issues/27754)

authored by volth and committed by Franz Pletz a4e44ffe a3e9a698

+7 -11
+7 -11
pkgs/data/fonts/opensans-ttf/default.nix
··· 1 - {stdenv, fetchurl}: 1 + {stdenv, fetchzip}: 2 2 3 - # adapted from https://aur.archlinux.org/packages/tt/ttf-opensans/PKGBUILD 4 - 5 - stdenv.mkDerivation rec { 3 + fetchzip { 6 4 name = "opensans-ttf-20140617"; 7 5 8 - src = fetchurl { 9 - url = "https://hexchain.org/pub/archlinux/ttf-opensans/opensans.tar.gz"; 10 - sha256 = "1ycn39dijhd3lffmafminrnfmymdig2jvc6i47bb42fx777q97q4"; 11 - }; 6 + url = "http://web.archive.org/web/20150801161609/https://hexchain.org/pub/archlinux/ttf-opensans/opensans.tar.gz"; 12 7 13 - sourceRoot = "."; 14 - 15 - installPhase = '' 8 + postFetch = '' 9 + tar -xzf $downloadedFile 16 10 mkdir -p $out/share/fonts/truetype 17 11 cp *.ttf $out/share/fonts/truetype 18 12 ''; 13 + 14 + sha256 = "0zpzqw5y9g5jk7xjcxa12ds60ckvxmpw8p7bnkkmad53s94yr5wf"; 19 15 20 16 meta = { 21 17 description = "Open Sans fonts";