1{
2 lib,
3 stdenvNoCC,
4 fetchFromGitHub,
5}:
6
7stdenvNoCC.mkDerivation rec {
8 pname = "office-code-pro";
9 version = "1.004";
10
11 src = fetchFromGitHub {
12 owner = "nathco";
13 repo = "Office-Code-Pro";
14 rev = version;
15 hash = "sha256-qzKTXYswkithZUJT0a3IifCq4RJFeKciZAPhYr2U1X4=";
16 };
17
18 installPhase = ''
19 runHook preInstall
20
21 install -m644 -Dt $out/share/doc/${pname}-${version} README.md
22 install -m444 -Dt $out/share/fonts/opentype 'Fonts/Office Code Pro/OTF/'*.otf 'Fonts/Office Code Pro D/OTF/'*.otf
23
24 runHook postInstall
25 '';
26
27 meta = with lib; {
28 description = "Customized version of Source Code Pro";
29 longDescription = ''
30 Office Code Pro is a customized version of Source Code Pro, the monospaced
31 sans serif originally created by Paul D. Hunt for Adobe Systems
32 Incorporated. The customizations were made specifically for text editors
33 and coding environments, but are still very usable in other applications.
34 '';
35 homepage = "https://github.com/nathco/Office-Code-Pro";
36 license = licenses.ofl;
37 maintainers = [ ];
38 };
39}