2019-05-13 02:55:32 +01:00
|
|
|
{ lib, fetchzip }:
|
2014-05-07 00:45:54 +01:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
let
|
2021-10-20 05:20:00 +01:00
|
|
|
version = "2.038";
|
2017-08-10 20:43:49 +01:00
|
|
|
in fetchzip {
|
|
|
|
name = "source-code-pro-${version}";
|
2014-05-07 00:45:54 +01:00
|
|
|
|
2021-10-20 05:20:00 +01:00
|
|
|
url = "https://github.com/adobe-fonts/source-code-pro/releases/download/${version}R-ro%2F1.058R-it%2F1.018R-VAR/OTF-source-code-pro-${version}R-ro-1.058R-it.zip";
|
2014-05-07 00:45:54 +01:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
2015-04-29 23:44:48 +01:00
|
|
|
'';
|
2014-05-07 00:45:54 +01:00
|
|
|
|
2021-10-20 05:20:00 +01:00
|
|
|
sha256 = "027cf62zj27q7l3d4sqzdfgz423lzysihdg8cvmkk6z910a1v368";
|
2017-08-10 20:43:49 +01:00
|
|
|
|
2014-05-07 00:45:54 +01:00
|
|
|
meta = {
|
2021-10-20 05:20:00 +01:00
|
|
|
description = "Monospaced font family for user interface and coding environments";
|
2019-05-13 02:55:32 +01:00
|
|
|
maintainers = with lib.maintainers; [ relrod ];
|
|
|
|
platforms = with lib.platforms; all;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://adobe-fonts.github.io/source-code-pro/";
|
2019-05-13 02:55:32 +01:00
|
|
|
license = lib.licenses.ofl;
|
2014-05-07 00:45:54 +01:00
|
|
|
};
|
2015-04-29 23:44:48 +01:00
|
|
|
}
|