blast: fix and enable strictDeps (#366620)
[NixPkgs.git] / pkgs / by-name / mo / monaspace / package.nix
blob6a5e4757defe4e430015900dbef2b986ebbb3358
2   lib,
3   stdenvNoCC,
4   fetchzip,
5 }:
7 stdenvNoCC.mkDerivation (finalAttrs: {
8   pname = "monaspace";
9   version = "1.101";
11   src = fetchzip {
12     url = "https://github.com/githubnext/monaspace/releases/download/v${finalAttrs.version}/monaspace-v${finalAttrs.version}.zip";
13     stripRoot = false;
14     hash = "sha256-o5s4XBuwqA4sJ5KhEn5oYttBj4ojekr/LO6Ww9oQRGw=";
15   };
17   outputs = [
18     "out"
19     "woff"
20   ];
22   installPhase = ''
23     runHook preInstall
25     pushd monaspace-v${finalAttrs.version}/fonts/
26     install -Dm644 otf/*.otf -t $out/share/fonts/opentype
27     install -Dm644 variable/*.ttf -t $out/share/fonts/truetype
28     install -Dm644 webfonts/*.woff -t $woff/share/fonts/woff
29     popd
31     runHook postInstall
32   '';
34   meta = {
35     description = "Innovative superfamily of fonts for code";
36     longDescription = ''
37       Since the earliest days of the teletype machine, code has been set in
38       monospaced type — letters, on a grid. Monaspace is a new type system that
39       advances the state of the art for the display of code on screen.
41       Every advancement in the technology of computing has been accompanied by
42       advancements to the display and editing of code. CRTs made screen editors
43       possible. The advent of graphical user interfaces gave rise to integrated
44       development environments.
46       Even today, we still have limited options when we want to layer additional
47       meaning on top of code. Syntax highlighting was invented in 1982 to help
48       children to code in BASIC. But beyond colors, most editors must
49       communicate with developers through their interfaces — hovers, underlines,
50       and other graphical decorations.
52       Monaspace offers a more expressive palette for code and the tools we use
53       to work with it.
54     '';
55     homepage = "https://monaspace.githubnext.com/";
56     license = lib.licenses.ofl;
57     maintainers = with lib.maintainers; [ AndersonTorres ];
58     platforms = lib.platforms.all;
59   };