2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, gettext, appstream-glib, gnome3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "cantarell-fonts";
|
|
|
|
version = "0.111";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 22:18:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "05hpnhihwm9sxlq1qn993g03pwkmpjbn0dvnba71r1gfjv0jp2w5";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja gettext appstream-glib ];
|
|
|
|
|
|
|
|
# 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";
|
|
|
|
outputHash = "12ps2gjv1lmzbmkv16vgjmaahl3ayadpniyrx0z31sqn443r57hq";
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|