mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
f0e64ce16f
Manual migration for the sake of by-name migration is no longer discouraged since #340235.
36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{ lib, stdenvNoCC, fetchFromGitHub }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "office-code-pro";
|
|
version = "1.004";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nathco";
|
|
repo = "Office-Code-Pro";
|
|
rev = version;
|
|
hash = "sha256-qzKTXYswkithZUJT0a3IifCq4RJFeKciZAPhYr2U1X4=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -m644 -Dt $out/share/doc/${pname}-${version} README.md
|
|
install -m444 -Dt $out/share/fonts/opentype 'Fonts/Office Code Pro/OTF/'*.otf 'Fonts/Office Code Pro D/OTF/'*.otf
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "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.
|
|
'';
|
|
homepage = "https://github.com/nathco/Office-Code-Pro";
|
|
license = licenses.ofl;
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
};
|
|
}
|