mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Source Code Pro font
This commit is contained in:
parent
535de5e45a
commit
df9427c535
2 changed files with 44 additions and 0 deletions
42
pkgs/data/fonts/source-code-pro/default.nix
Normal file
42
pkgs/data/fonts/source-code-pro/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
x@{builderDefsPackage
|
||||
, unzip
|
||||
, ...}:
|
||||
builderDefsPackage
|
||||
(a :
|
||||
let
|
||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||
[];
|
||||
|
||||
buildInputs = map (n: builtins.getAttr n x)
|
||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
||||
sourceInfo = rec {
|
||||
version="1.017";
|
||||
name="SourceCodePro";
|
||||
url="mirror://sourceforge/sourcecodepro.adobe/${name}_FontsOnly-${version}.zip";
|
||||
hash="07xjfxin883a3g3admdddxxqyzigihbsnmik0zpjii09cdlb8dl1";
|
||||
};
|
||||
in
|
||||
rec {
|
||||
src = a.fetchurl {
|
||||
url = sourceInfo.url;
|
||||
sha256 = sourceInfo.hash;
|
||||
};
|
||||
|
||||
name = "${sourceInfo.name}-${sourceInfo.version}";
|
||||
inherit buildInputs;
|
||||
|
||||
phaseNames = ["doUnpack" "installFonts"];
|
||||
|
||||
doUnpack = a.fullDepEntry (''
|
||||
unzip ${src}
|
||||
cd ${sourceInfo.name}*/OTF/
|
||||
'') ["addInputs"];
|
||||
|
||||
meta = {
|
||||
description = "A set of monospaced OpenType fonts designed for coding environments";
|
||||
maintainers = with a.lib.maintainers; [ relrod ];
|
||||
platforms = with a.lib.platforms; all;
|
||||
homepage = "http://blog.typekit.com/2012/09/24/source-code-pro/";
|
||||
license = "OFL";
|
||||
};
|
||||
}) x
|
|
@ -7681,6 +7681,8 @@ let
|
|||
|
||||
r5rs = callPackage ../data/documentation/rnrs/r5rs.nix { };
|
||||
|
||||
sourceCodePro = callPackage ../data/fonts/source-code-pro {};
|
||||
|
||||
tango-icon-theme = callPackage ../data/icons/tango-icon-theme { };
|
||||
|
||||
themes = name: import (../data/misc/themes + ("/" + name + ".nix")) {
|
||||
|
|
Loading…
Reference in a new issue