source-code-pro: use fetchFromGitHub to fix hash

Fixes #12372, Close #12376.
This commit is contained in:
Louis Taylor 2016-01-14 05:47:51 +00:00 committed by Vladimír Čunát
parent 0eeda4e36f
commit f917a7f908

View File

@ -1,13 +1,15 @@
{ stdenv, fetchurl }:
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "source-code-pro-${version}";
version = "2.010";
version_italic = "1.030";
src = fetchurl {
url="https://github.com/adobe-fonts/source-code-pro/archive/${version}R-ro/${version_italic}R-it.tar.gz";
sha256="1y44p2i7hd1klq81xbh796y7n4rzjvn37jrqw0nz31k59v8a1r9y";
src = fetchFromGitHub {
owner = "adobe-fonts";
repo = "source-code-pro";
rev = "2.010R-ro/1.030R-it";
name = "2.010R-ro-1.030R-it";
sha256 = "0f40g23lfcajpd5m9r1z7v8x011dsfs6ba7fihjal6yzaf5hb6mh";
};
phases = "unpackPhase installPhase";