2018-03-02 22:57:48 +00:00
|
|
|
{ stdenv, fetchurl, meson, ninja, gettext, appstream-glib, gnome3 }:
|
2012-01-06 20:10:23 +00:00
|
|
|
|
2018-03-02 22:57:48 +00:00
|
|
|
let
|
|
|
|
pname = "cantarell-fonts";
|
2018-11-20 20:52:08 +00:00
|
|
|
version = "0.110";
|
2018-03-02 22:57:48 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2012-01-06 20:10:23 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-11-20 20:52:08 +00:00
|
|
|
sha256 = "19rll0h4xjn83lqm0zc4088y0vkrx1wxg8jz9imvgd8snmfxfm54";
|
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";
|
2018-11-20 20:52:08 +00:00
|
|
|
outputHash = "052nxmhw2j8yvcj90r8xhjf0mzim8h6syip7winxb28vavj6jnba";
|
2018-03-02 22:57:48 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
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";
|
2012-01-06 20:10:23 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2014-09-30 11:14:59 +01:00
|
|
|
license = stdenv.lib.licenses.ofl;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2012-01-06 20:10:23 +00:00
|
|
|
};
|
|
|
|
}
|