mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
libxml2,
|
|
libxslt,
|
|
itstool,
|
|
gnome,
|
|
pkg-config,
|
|
meson,
|
|
ninja,
|
|
python3,
|
|
yelp-xsl,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "yelp-tools";
|
|
version = "42.1";
|
|
|
|
format = "other";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/yelp-tools/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
sha256 = "PklqQCDUFFuZ/VCKJfoJM2pQOk6JAAKEIecsaksR+QU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
meson
|
|
ninja
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
libxml2 # xmllint required by yelp-check.
|
|
libxslt # xsltproc required by yelp-build and yelp-check.
|
|
];
|
|
|
|
buildInputs = [
|
|
itstool # build script checks for its presence but I am not sure if anything uses it
|
|
yelp-xsl
|
|
];
|
|
|
|
pythonPath = [
|
|
python3.pkgs.lxml
|
|
];
|
|
|
|
strictDeps = false; # TODO: Meson cannot find xmllint oherwise. Maybe add it to machine file?
|
|
|
|
doCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://gitlab.gnome.org/GNOME/yelp-tools";
|
|
description = "Small programs that help you create, edit, manage, and publish your Mallard or DocBook documentation";
|
|
maintainers = teams.gnome.members ++ (with maintainers; [ domenkozar ]);
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|