mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, python3
|
|
, gettext
|
|
, appstream-glib
|
|
, gnome
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
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
|
|
];
|
|
|
|
# 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 = "XeqHVdTQ7PTzxkjwfzS/BTR7+k/M69sfUKdRXGOTmZE=";
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Default typeface used in the user interface of GNOME since version 3.0";
|
|
platforms = lib.platforms.all;
|
|
license = lib.licenses.ofl;
|
|
maintainers = [ ];
|
|
};
|
|
}
|