mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 20:02:58 +03:00
commit
0cb0ad27be
@ -22,7 +22,7 @@ rec {
|
||||
sha256 = sourceInfo.hash;
|
||||
};
|
||||
|
||||
name = "${sourceInfo.name}-${sourceInfo.version}";
|
||||
name = "source-code-pro-${sourceInfo.version}";
|
||||
inherit buildInputs;
|
||||
|
||||
phaseNames = ["doUnpack" "installFonts"];
|
||||
|
26
pkgs/data/fonts/source-sans-pro/default.nix
Normal file
26
pkgs/data/fonts/source-sans-pro/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ stdenv, fetchurl, unzip }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "source-sans-pro-1.050";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/sourcesans.adobe/SourceSansPro_FontsOnly-1.050.zip";
|
||||
sha256 = "002z7kx8jxp5pfrilqaxbwbr5yp9fl3zsp0imawmf5wqagpzayf3";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
phases = "unpackPhase installPhase";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/opentype
|
||||
find . -name "*.otf" -exec cp {} $out/share/fonts/opentype \;
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://sourceforge.net/adobe/sourcesans;
|
||||
description = "A set of OpenType fonts designed by Adobe for UIs";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ ttuegel ];
|
||||
};
|
||||
}
|
27
pkgs/data/fonts/source-serif-pro/default.nix
Normal file
27
pkgs/data/fonts/source-serif-pro/default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ stdenv, fetchurl, unzip }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "source-serif-pro-1.014";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/sourceserifpro.adobe/SourceSerifPro_FontsOnly-1.014.zip";
|
||||
sha256 = "1agack195jqq4g2hmga6f9nwg44garii1g3jpbrdlrwr97rwvqsh";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
phases = "unpackPhase installPhase";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/opentype
|
||||
find . -name "*.otf" -exec cp {} $out/share/fonts/opentype \;
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://sourceforge.net/adobe/sourceserifpro;
|
||||
description = "A set of OpenType fonts to complement Source Sans Pro";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ ttuegel ];
|
||||
};
|
||||
}
|
||||
|
@ -8014,7 +8014,11 @@ let
|
||||
|
||||
r5rs = callPackage ../data/documentation/rnrs/r5rs.nix { };
|
||||
|
||||
sourceCodePro = callPackage ../data/fonts/source-code-pro {};
|
||||
source-code-pro = callPackage ../data/fonts/source-code-pro {};
|
||||
|
||||
source-sans-pro = callPackage ../data/fonts/source-sans-pro { };
|
||||
|
||||
source-serif-pro = callPackage ../data/fonts/source-serif-pro { };
|
||||
|
||||
source-han-sans-japanese = callPackage ../data/fonts/source-han-sans/japanese.nix {};
|
||||
source-han-sans-korean = callPackage ../data/fonts/source-han-sans/korean.nix {};
|
||||
|
Loading…
Reference in New Issue
Block a user