nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 32 lines 936 B view raw
1{ lib, stdenvNoCC, fetchzip }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "barlow"; 5 version = "1.422"; 6 7 src = fetchzip { 8 url = "https://tribby.com/fonts/barlow/download/barlow-${version}.zip"; 9 stripRoot = false; 10 hash = "sha256-aHAGPEgBkH41r7HR0D74OGCa7ta7Uo8Mgq4YVtYOwU8="; 11 }; 12 13 installPhase = '' 14 runHook preInstall 15 16 install -Dm644 fonts/otf/*.otf -t $out/share/fonts/opentype 17 install -Dm644 fonts/ttf/*.ttf fonts/gx/*.ttf -t $out/share/fonts/truetype 18 install -Dm644 fonts/eot/*.eot -t $out/share/fonts/eot 19 install -Dm644 fonts/woff/*.woff -t $out/share/fonts/woff 20 install -Dm644 fonts/woff2/*.woff2 -t $out/share/fonts/woff2 21 22 runHook postInstall 23 ''; 24 25 meta = with lib; { 26 description = "A grotesk variable font superfamily"; 27 homepage = "https://tribby.com/fonts/barlow/"; 28 license = licenses.ofl; 29 maintainers = [ maintainers.marsam ]; 30 platforms = platforms.all; 31 }; 32}