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