ubuntu_font_family: make the font derivation fixed-output

- [x] make the font derivation fixed-output (https://github.com/NixOS/nixpkgs/issues/27754)
This commit is contained in:
volth 2017-08-11 04:03:56 +00:00 committed by Franz Pletz
parent 5f4906616d
commit dfb345898b

View File

@ -1,19 +1,16 @@
{ stdenv, fetchurl, unzip }: { stdenv, fetchzip }:
stdenv.mkDerivation rec { fetchzip rec {
name = "ubuntu-font-family-0.83"; name = "ubuntu-font-family-0.83";
buildInputs = [unzip];
src = fetchurl { url = "http://font.ubuntu.com/download/${name}.zip";
url = "http://font.ubuntu.com/download/${name}.zip";
sha256 = "0hjvq2x758dx0sfwqhzflns0ns035qm7h6ygskbx1svzg517sva5";
};
installPhase = postFetch = ''
'' mkdir -p $out/share/fonts
mkdir -p $out/share/fonts/ubuntu unzip -j $downloadedFile \*.ttf -d $out/share/fonts/ubuntu
cp *.ttf $out/share/fonts/ubuntu '';
'';
sha256 = "090y665h4kf2bi623532l6wiwkwnpd0xds0jr7560xwfwys1hiqh";
meta = { meta = {
description = "Ubuntu Font Family"; description = "Ubuntu Font Family";