Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenvNoCC, 4 fetchzip, 5}: 6stdenvNoCC.mkDerivation (finalAttrs: { 7 pname = "commit-mono"; 8 version = "1.143"; 9 10 src = fetchzip { 11 url = "https://github.com/eigilnikolajsen/commit-mono/releases/download/v${finalAttrs.version}/CommitMono-${finalAttrs.version}.zip"; 12 hash = "sha256-JTyPgWfbWq+lXQU/rgnyvPG6+V3f+FB5QUkd+I1oFKE="; 13 stripRoot = false; 14 }; 15 16 dontConfigure = true; 17 dontPatch = true; 18 dontBuild = true; 19 dontFixup = true; 20 doCheck = false; 21 22 installPhase = '' 23 runHook preInstall 24 install -Dm644 CommitMono-${finalAttrs.version}/*.otf -t $out/share/fonts/opentype 25 install -Dm644 CommitMono-${finalAttrs.version}/ttfautohint/*.ttf -t $out/share/fonts/truetype 26 runHook postInstall 27 ''; 28 29 meta = { 30 description = "Anonymous and neutral programming typeface focused on creating a better reading experience"; 31 homepage = "https://commitmono.com/"; 32 license = lib.licenses.ofl; 33 maintainers = with lib.maintainers; [ yoavlavi ]; 34 platforms = lib.platforms.all; 35 }; 36})