Skip to content

Commit

Permalink
ubuntu_font_family: make the font derivation fixed-output
Browse files Browse the repository at this point in the history
- [x] make the font derivation fixed-output (#27754)
  • Loading branch information
volth authored and fpletz committed Aug 11, 2017
1 parent 5f49066 commit dfb3458
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions pkgs/data/fonts/ubuntu-font-family/default.nix
@@ -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";

postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/ubuntu
'';

installPhase =
''
mkdir -p $out/share/fonts/ubuntu
cp *.ttf $out/share/fonts/ubuntu
'';
sha256 = "090y665h4kf2bi623532l6wiwkwnpd0xds0jr7560xwfwys1hiqh";

meta = {
description = "Ubuntu Font Family";
Expand Down

0 comments on commit dfb3458

Please sign in to comment.