nixpkgs/pkgs/by-name/ca/cantarell-fonts/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchurl
, meson
, ninja
, python3
, gettext
, appstream-glib
, gnome
}:
stdenv.mkDerivation rec {
2018-03-02 22:57:48 +00:00
pname = "cantarell-fonts";
version = "0.303.1";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "+UY6BlnGPlfjgf3XU88ZKSJTlcW0kTWYlCR2GDBTBBE=";
};
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
];
2018-03-02 22:57:48 +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 19:43:49 +00:00
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "XeqHVdTQ7PTzxkjwfzS/BTR7+k/M69sfUKdRXGOTmZE=";
2018-03-02 22:57:48 +00:00
passthru = {
updateScript = gnome.updateScript {
2018-03-02 22:57:48 +00:00
packageName = pname;
};
};
2017-08-10 19:43:49 +00:00
meta = {
2014-09-30 10:29:11 +00: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 = [ ];
};
}