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