2019-05-13 03:55:32 +02:00
|
|
|
{ lib, fetchFromGitHub }:
|
2019-02-04 03:04:02 +01:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
let
|
2019-02-04 03:04:02 +01:00
|
|
|
pname = "office-code-pro";
|
|
|
|
version = "1.004";
|
2019-05-13 03:55:32 +02:00
|
|
|
in fetchFromGitHub rec {
|
|
|
|
name = "${pname}-${version}";
|
2019-02-04 03:04:02 +01:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
owner = "nathco";
|
|
|
|
repo = "Office-Code-Pro";
|
|
|
|
rev = version;
|
2019-02-04 03:04:02 +01:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
postFetch = ''
|
|
|
|
tar xf $downloadedFile --strip=1
|
|
|
|
install -m644 -Dt $out/share/doc/${name} README.md
|
|
|
|
install -m444 -Dt $out/share/fonts/opentype 'Fonts/Office Code Pro/OTF/'*.otf 'Fonts/Office Code Pro D/OTF/'*.otf
|
2019-02-04 03:04:02 +01:00
|
|
|
'';
|
2019-05-13 03:55:32 +02:00
|
|
|
sha256 = "1bagwcaicn6q8qkqazz6wb3x30y4apmkga0mkv8fh6890hfhywr9";
|
2019-02-04 03:04:02 +01:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
meta = with lib; {
|
2019-02-04 03:04:02 +01:00
|
|
|
description = "A customized version of Source Code Pro";
|
|
|
|
longDescription = ''
|
|
|
|
Office Code Pro is a customized version of Source Code Pro, the monospaced
|
|
|
|
sans serif originally created by Paul D. Hunt for Adobe Systems
|
|
|
|
Incorporated. The customizations were made specifically for text editors
|
|
|
|
and coding environments, but are still very usable in other applications.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/nathco/Office-Code-Pro";
|
2019-02-04 03:04:02 +01:00
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|