nixpkgs/pkgs/data/fonts/camingo-code/default.nix

25 lines
766 B
Nix
Raw Normal View History

2017-08-10 20:43:49 +01:00
{ stdenv, fetchzip }:
2016-10-06 21:27:40 +01:00
2017-08-10 20:43:49 +01:00
let
2016-10-06 21:27:40 +01:00
version = "1.0";
2017-08-10 20:43:49 +01:00
in fetchzip rec {
name = "camingo-code-${version}";
2016-10-06 21:27:40 +01:00
2017-08-10 20:43:49 +01:00
url = https://github.com/chrissimpkins/codeface/releases/download/font-collection/codeface-fonts.zip;
postFetch = ''
unzip $downloadedFile
2016-10-06 21:27:40 +01:00
mkdir -p $out/share/fonts/truetype
mkdir -p $out/share/doc/${name}
2017-08-10 20:43:49 +01:00
cp -v fonts/camingo-code/*.ttf $out/share/fonts/truetype/
cp -v fonts/camingo-code/*.txt $out/share/doc/${name}/
2016-10-06 21:27:40 +01:00
'';
2017-08-10 20:43:49 +01:00
sha256 = "035z2k6lwwy2bysw27pirn3vjxnj2h23nyx8jr213rb2bl0m21x1";
2016-10-06 21:27:40 +01:00
meta = with stdenv.lib; {
homepage = https://www.myfonts.com/fonts/jan-fromm/camingo-code/;
description = "A monospaced typeface designed for source-code editors";
platforms = platforms.all;
license = licenses.cc-by-nd-30;
};
}