nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 28 lines 934 B view raw
1{ lib, stdenvNoCC, fetchzip }: 2 3stdenvNoCC.mkDerivation (finalAttrs: { 4 pname = "kode-mono"; 5 version = "1.017"; 6 7 src = fetchzip { 8 url = "https://github.com/isaozler/kode-mono/releases/download/${finalAttrs.version}/kode-mono-fonts.zip"; 9 hash = "sha256-5bTciBQhWNUokOP3YzAwrvp7jeyiF4JMdJDX+6NXvLU="; 10 stripRoot = false; 11 }; 12 13 installPhase = '' 14 runHook preInstall 15 install -Dm644 kode-mono-fonts/fonts/ttf/*.ttf -t $out/share/fonts/truetype/ 16 install -Dm644 kode-mono-fonts/fonts/variable/*.ttf -t $out/share/fonts/truetype/ 17 runHook postInstall 18 ''; 19 20 meta = with lib; { 21 description = "A custom-designed typeface explicitly created for the developer community"; 22 homepage = "https://kodemono.com/"; 23 changelog = "https://github.com/isaozler/kode-mono/blob/main/CHANGELOG.md"; 24 license = licenses.ofl; 25 maintainers = [ maintainers.isaozler ]; 26 platforms = platforms.all; 27 }; 28})