mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
c9eb44eab3
* make font derivations fixed-output where applicable * fix dead links * `stdenv.lib` -> `lib` where `stdenv` is not involved * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
23 lines
706 B
Nix
23 lines
706 B
Nix
{ lib, fetchzip }:
|
|
|
|
let
|
|
version = "1.0";
|
|
in fetchzip rec {
|
|
name = "camingo-code-${version}";
|
|
|
|
url = https://github.com/chrissimpkins/codeface/releases/download/font-collection/codeface-fonts.zip;
|
|
postFetch = ''
|
|
unzip $downloadedFile
|
|
install -m444 -Dt $out/share/fonts/truetype fonts/camingo-code/*.ttf
|
|
install -m444 -Dt $out/share/doc/${name} fonts/camingo-code/*.txt
|
|
'';
|
|
sha256 = "16iqjwwa7pnswvcc4w8nglkd0m0fz50qsz96i1kcpqip3nwwvw7y";
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|