mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
Adding Old Standard font
svn path=/nixpkgs/trunk/; revision=27307
This commit is contained in:
parent
9f3e6006e8
commit
1e8b1fce5c
50
pkgs/data/fonts/oldstandard/default.nix
Normal file
50
pkgs/data/fonts/oldstandard/default.nix
Normal file
@ -0,0 +1,50 @@
|
||||
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="2.2";
|
||||
baseName="oldstandard";
|
||||
name="${baseName}-${version}";
|
||||
url="http://www.thessalonica.org.ru/downloads/${name}.otf.zip";
|
||||
hash="0xhbksrh9mv1cs6dl2mc8l6sypialy9wirkjr54nf7s9bcynv1h6";
|
||||
};
|
||||
in
|
||||
rec {
|
||||
src = a.fetchurl {
|
||||
url = sourceInfo.url;
|
||||
sha256 = sourceInfo.hash;
|
||||
};
|
||||
|
||||
inherit (sourceInfo) name version;
|
||||
inherit buildInputs;
|
||||
|
||||
phaseNames = ["doUnpack" "installFonts"];
|
||||
|
||||
doUnpack = a.fullDepEntry ''
|
||||
unzip ${src}
|
||||
'' ["addInputs"];
|
||||
|
||||
meta = {
|
||||
description = "An old-style font";
|
||||
maintainers = with a.lib.maintainers;
|
||||
[
|
||||
raskin
|
||||
];
|
||||
platforms = with a.lib.platforms;
|
||||
all;
|
||||
};
|
||||
passthru = {
|
||||
updateInfo = {
|
||||
downloadPage = "http://www.thessalonica.org.ru/ru/fonts-download.html";
|
||||
};
|
||||
};
|
||||
}) x
|
||||
|
@ -5754,6 +5754,8 @@ let
|
||||
|
||||
mph_2b_damase = callPackage ../data/fonts/mph-2b-damase { };
|
||||
|
||||
oldstandard = callPackage ../data/fonts/oldstandard { };
|
||||
|
||||
posix_man_pages = callPackage ../data/documentation/man-pages-posix { };
|
||||
|
||||
pthreadmanpages = callPackage ../data/documentation/pthread-man-pages { };
|
||||
|
Loading…
Reference in New Issue
Block a user