Skip to content

Commit

Permalink
roboto: 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 72d3d2a commit 1fe7f03
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions pkgs/data/fonts/roboto/default.nix
@@ -1,21 +1,19 @@
{ stdenv, fetchurl, unzip }:
{ stdenv, fetchzip }:

stdenv.mkDerivation rec {
name = "roboto-${version}";
let
version = "2.136";
in fetchzip rec {
name = "roboto-${version}";

src = fetchurl {
url = "https://github.com/google/roboto/releases/download/v${version}/roboto-unhinted.zip";
sha256 = "0yx3q5wbbl1qkxfx1fglzy3rvms98jr8fcfj70vvvz3r3lppv201";
};

nativeBuildInputs = [ unzip ];
url = "https://github.com/google/roboto/releases/download/v${version}/roboto-unhinted.zip";

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

sha256 = "02fanxx2hg0kvxl693rc0fkbrbr2i8b14qmpparkrwmv0j35wnd7";

meta = {
homepage = https://github.com/google/roboto;
description = "The Roboto family of fonts";
Expand Down

0 comments on commit 1fe7f03

Please sign in to comment.