nixpkgs/pkgs/by-name/so/source-sans/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
802 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchzip }:
2014-05-26 20:55:32 +01:00
stdenvNoCC.mkDerivation rec {
pname = "source-sans";
2023-08-07 19:28:37 +01:00
version = "3.052";
2014-05-26 20:55:32 +01:00
src = fetchzip {
url = "https://github.com/adobe-fonts/source-sans/archive/${version}R.zip";
2023-08-07 19:28:37 +01:00
hash = "sha256-yzbYy/ZS1GGlgJW+ARVWF4tjFqmMq7x+YqSQnojtQBs=";
};
installPhase = ''
runHook preInstall
2014-05-26 20:55:32 +01:00
install -Dm444 OTF/*.otf -t $out/share/fonts/opentype
install -Dm444 TTF/*.ttf -t $out/share/fonts/truetype
2023-08-07 19:28:37 +01:00
install -Dm444 VF/*.otf -t $out/share/fonts/variable
runHook postInstall
'';
2017-08-10 20:43:49 +01:00
meta = with lib; {
2021-10-20 05:20:00 +01:00
homepage = "https://adobe-fonts.github.io/source-sans/";
description = "Sans serif font family for user interface environments";
2014-05-26 20:55:32 +01:00
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ ttuegel ];
};
}