mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +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/'
33 lines
959 B
Nix
33 lines
959 B
Nix
{ lib, stdenvNoCC, fetchFromGitHub }:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "clarity-city";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vmware";
|
|
repo = "clarity-city";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-1POSdd2ICnyNNmGadIujezNK8qvARD0kkLR4yWjs5kA=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 TrueType/*.ttf -t $out/share/fonts/truetype
|
|
install -Dm644 OpenType/*.otf -t $out/share/fonts/opentype
|
|
install -Dm644 Webfonts/EOT/*.eot -t $out/share/fonts/eot
|
|
install -Dm644 Webfonts/WOFF/*.woff -t $out/share/fonts/woff
|
|
install -Dm644 Webfonts/WOFF2/*.woff2 -t $out/share/fonts/woff2
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Open source sans-serif typeface";
|
|
homepage = "https://github.com/vmware/clarity-city";
|
|
license = licenses.ofl;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ sagikazarmark ];
|
|
};
|
|
})
|