nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 36 lines 965 B view raw
1{ lib, stdenvNoCC, fetchzip }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "3270font"; 5 version = "3.0.1"; 6 7 src = fetchzip { 8 url = "https://github.com/rbanffy/3270font/releases/download/v${version}/3270_fonts_d916271.zip"; 9 sha256 = "sha256-Zi6Lp5+sqfjIaHmnaaemaw3i+hXq9mqIsK/81lTkwfM="; 10 stripRoot = false; 11 }; 12 13 dontPatch = true; 14 dontConfigure = true; 15 dontBuild = true; 16 doCheck = false; 17 dontFixup = true; 18 19 installPhase = '' 20 runHook preInstall 21 22 install -Dm644 -t $out/share/fonts/opentype/ *.otf 23 install -Dm644 -t $out/share/fonts/truetype/ *.ttf 24 25 runHook postInstall 26 ''; 27 28 meta = with lib; { 29 description = "Monospaced font based on IBM 3270 terminals"; 30 homepage = "https://github.com/rbanffy/3270font"; 31 changelog = "https://github.com/rbanffy/3270font/blob/v${version}/CHANGELOG.md"; 32 license = [ licenses.bsd3 licenses.ofl ]; 33 maintainers = [ maintainers.marsam ]; 34 platforms = platforms.all; 35 }; 36}