2022-02-10 20:34:41 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
, gettext
|
|
|
|
, appstream-glib
|
|
|
|
, gnome
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "cantarell-fonts";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "0.303.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-20 23:08:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "+UY6BlnGPlfjgf3XU88ZKSJTlcW0kTWYlCR2GDBTBBE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
python3
|
|
|
|
python3.pkgs.psautohint
|
|
|
|
python3.pkgs.cffsubr
|
|
|
|
python3.pkgs.statmake
|
|
|
|
python3.pkgs.ufo2ft
|
|
|
|
python3.pkgs.setuptools
|
|
|
|
python3.pkgs.ufoLib2
|
|
|
|
gettext
|
|
|
|
appstream-glib
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# ad-hoc fix for https://github.com/NixOS/nixpkgs/issues/50855
|
|
|
|
# until we fix gettext's envHook
|
|
|
|
preBuild = ''
|
|
|
|
export GETTEXTDATADIRS="$GETTEXTDATADIRS_FOR_BUILD"
|
|
|
|
'';
|
|
|
|
|
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
2022-02-10 20:34:41 +00:00
|
|
|
outputHash = "XeqHVdTQ7PTzxkjwfzS/BTR7+k/M69sfUKdRXGOTmZE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Default typeface used in the user interface of GNOME since version 3.0";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
license = lib.licenses.ofl;
|
|
|
|
maintainers = with lib.maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|