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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
769 B
Nix
Raw Normal View History

2023-01-24 20:17:01 +00:00
{ lib, stdenvNoCC, fetchzip }:
2016-10-06 20:27:40 +00:00
2023-01-24 20:17:01 +00:00
stdenvNoCC.mkDerivation rec {
pname = "camingo-code";
2016-10-06 20:27:40 +00:00
version = "1.0";
2023-01-24 20:17:01 +00:00
src = fetchzip {
url = "https://github.com/chrissimpkins/codeface/releases/download/font-collection/codeface-fonts.zip";
hash = "sha256-oo5pWDq6h0bmyGvfF9Bkh7WyjKX4dG8uclfIsWLhDw8=";
};
installPhase = ''
runHook preInstall
install -Dm644 camingo-code/*.ttf -t $out/share/fonts/truetype
install -Dm644 camingo-code/*.txt -t $out/share/doc/${pname}-${version}
runHook postInstall
2016-10-06 20:27:40 +00:00
'';
meta = with lib; {
homepage = "https://www.myfonts.com/fonts/jan-fromm/camingo-code/";
2016-10-06 20:27:40 +00:00
description = "A monospaced typeface designed for source-code editors";
platforms = platforms.all;
license = licenses.cc-by-nd-30;
};
}