diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2019-02-04 00:04:02 -0200 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2019-02-04 07:45:20 -0200 |
commit | 787a73639e1dd09d9734db62e91f8a9301e24179 (patch) | |
tree | 165a82c46f7dfb6d5a8c3d58d43a0418c956d628 /pkgs/data/fonts/office-code-pro | |
parent | 76c0ebc710de75ec0aa9687678404a5851b228bf (diff) |
Office Code Pro: init at 1.004
Diffstat (limited to 'pkgs/data/fonts/office-code-pro')
-rw-r--r-- | pkgs/data/fonts/office-code-pro/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/data/fonts/office-code-pro/default.nix b/pkgs/data/fonts/office-code-pro/default.nix new file mode 100644 index 0000000000000..564b950784be3 --- /dev/null +++ b/pkgs/data/fonts/office-code-pro/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "office-code-pro"; + version = "1.004"; + + src = fetchFromGitHub { + owner = "nathco"; + repo = "Office-Code-Pro"; + rev = version; + sha256 = "0znmjjyn5q83chiafy252bhsmw49r2nx2ls2cmhjp4ihidfr6cmb"; + }; + + installPhase = '' + fontDir=$out/share/fonts/opentype + docDir=$out/share/doc/${pname}-${version} + mkdir -p $fontDir $docDir + install -Dm644 README.md $docDir + install -t $fontDir -m644 'Fonts/Office Code Pro/OTF/'*.otf + install -t $fontDir -m644 'Fonts/Office Code Pro D/OTF/'*.otf + ''; + + meta = with stdenv.lib; { + 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. + ''; + homepage = https://github.com/nathco/Office-Code-Pro; + license = licenses.ofl; + maintainers = [ maintainers.AndersonTorres ]; + platforms = platforms.unix; + }; +} |