2021-05-07 22:18:14 +01:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, gettext, appstream-glib, gnome }:
|
2012-01-06 20:10:23 +00:00
|
|
|
|
2021-03-21 00:32:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-02 22:57:48 +00:00
|
|
|
pname = "cantarell-fonts";
|
2021-03-21 00:32:01 +00:00
|
|
|
version = "0.301";
|
2012-01-06 20:10:23 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-21 00:32:01 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "3d35db0ac03f9e6b0d5a53577591b714238985f4cfc31a0aa17f26cd74675e83";
|
2012-01-06 20:10:23 +00:00
|
|
|
};
|
|
|
|
|
2018-03-02 22:57:48 +00:00
|
|
|
nativeBuildInputs = [ meson ninja gettext appstream-glib ];
|
|
|
|
|
2018-11-21 13:39:51 +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"
|
|
|
|
'';
|
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
2021-03-21 00:32:01 +00:00
|
|
|
outputHash = "1sczskw2kv3qy39i9mzw2lkl94a90bjgv5ln9acy5kh4gb2zmy7z";
|
2018-03-02 22:57:48 +00:00
|
|
|
|
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-02 22:57:48 +00:00
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
2017-08-10 20:43:49 +01:00
|
|
|
|
2012-01-06 20:10:23 +00:00
|
|
|
meta = {
|
2014-09-30 11:29:11 +01:00
|
|
|
description = "Default typeface used in the user interface of GNOME since version 3.0";
|
2021-01-15 07:29:18 +00:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
license = lib.licenses.ofl;
|
|
|
|
maintainers = with lib.maintainers; [ ];
|
2012-01-06 20:10:23 +00:00
|
|
|
};
|
|
|
|
}
|