mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
32 lines
915 B
Nix
32 lines
915 B
Nix
{ lib, stdenvNoCC, fetchzip }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "barlow";
|
|
version = "1.422";
|
|
|
|
src = fetchzip {
|
|
url = "https://tribby.com/fonts/barlow/download/barlow-${version}.zip";
|
|
stripRoot = false;
|
|
hash = "sha256-aHAGPEgBkH41r7HR0D74OGCa7ta7Uo8Mgq4YVtYOwU8=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 fonts/otf/*.otf -t $out/share/fonts/opentype
|
|
install -Dm644 fonts/ttf/*.ttf fonts/gx/*.ttf -t $out/share/fonts/truetype
|
|
install -Dm644 fonts/eot/*.eot -t $out/share/fonts/eot
|
|
install -Dm644 fonts/woff/*.woff -t $out/share/fonts/woff
|
|
install -Dm644 fonts/woff2/*.woff2 -t $out/share/fonts/woff2
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Grotesk variable font superfamily";
|
|
homepage = "https://tribby.com/fonts/barlow/";
|
|
license = licenses.ofl;
|
|
maintainers = [ ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|