summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Dietz <github@wdtz.org>2019-02-04 04:40:28 -0600
committerGitHub <noreply@github.com>2019-02-04 04:40:28 -0600
commit0955567a7d9fa9e1e472a37549e039ff4fe4f50a (patch)
tree894d21c125210ed16dcc40fc56afa5a9cdbf1b82
parent6e8ce991f8792dec8286e3df525653a6f1ea2ce3 (diff)
parent787a73639e1dd09d9734db62e91f8a9301e24179 (diff)
downloadnixpkgs-0955567a7d9fa9e1e472a37549e039ff4fe4f50a.tar
nixpkgs-0955567a7d9fa9e1e472a37549e039ff4fe4f50a.tar.gz
nixpkgs-0955567a7d9fa9e1e472a37549e039ff4fe4f50a.tar.bz2
nixpkgs-0955567a7d9fa9e1e472a37549e039ff4fe4f50a.tar.lz
nixpkgs-0955567a7d9fa9e1e472a37549e039ff4fe4f50a.tar.xz
nixpkgs-0955567a7d9fa9e1e472a37549e039ff4fe4f50a.tar.zst
nixpkgs-0955567a7d9fa9e1e472a37549e039ff4fe4f50a.zip
Merge pull request #55154 from AndersonTorres/package/office-code-pro
Office Code Pro: init at 1.004
-rw-r--r--pkgs/data/fonts/office-code-pro/default.nix36
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 38 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 00000000000..564b950784b
--- /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;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index c2ead70e50d..5e1208d6b0c 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -15716,6 +15716,8 @@ in
 
   numix-cursor-theme = callPackage ../data/icons/numix-cursor-theme { };
 
+  office-code-pro = callPackage ../data/fonts/office-code-pro { };
+
   oldstandard = callPackage ../data/fonts/oldstandard { };
 
   oldsindhi = callPackage ../data/fonts/oldsindhi { };