1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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";
buildInputs = [unzip];
src = fetchurl {
url = "http://font.ubuntu.com/download/${name}.zip";
sha256 = "0hjvq2x758dx0sfwqhzflns0ns035qm7h6ygskbx1svzg517sva5";
};
url = "http://font.ubuntu.com/download/${name}.zip";
installPhase =
''
mkdir -p $out/share/fonts/ubuntu
cp *.ttf $out/share/fonts/ubuntu
'';
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/ubuntu
'';
sha256 = "090y665h4kf2bi623532l6wiwkwnpd0xds0jr7560xwfwys1hiqh";
meta = {
description = "Ubuntu Font Family";