567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
32 lines
772 B
Nix
32 lines
772 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchzip,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "camingo-code";
|
|
version = "1.0";
|
|
|
|
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
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://www.myfonts.com/fonts/jan-fromm/camingo-code/";
|
|
description = "Monospaced typeface designed for source-code editors";
|
|
platforms = lib.platforms.all;
|
|
license = lib.licenses.cc-by-nd-30;
|
|
};
|
|
}
|