
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-build a08b3a4d19
.tar.gz \
--argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
result/bin/apply-formatting $NIXPKGS_PATH
73 lines
1.5 KiB
Nix
73 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
bash,
|
|
bison,
|
|
flex,
|
|
gperf,
|
|
ncurses,
|
|
pkg-config,
|
|
python3,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "kconfig-frontends";
|
|
version = "4.11.0.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://bitbucket.org/nuttx/tools/downloads/kconfig-frontends-${finalAttrs.version}.tar.bz2";
|
|
hash = "sha256-yxg4z+Lwl7oJyt4n1HUncg1bKeK3FcCpbDPQtqELqxM=";
|
|
};
|
|
|
|
patches = [
|
|
# This patch is a fixed file, there is no need to normalize it
|
|
(fetchurl {
|
|
url = "https://bitbucket.org/nuttx/tools/downloads/gperf3.1_kconfig_id_lookup.patch";
|
|
hash = "sha256-cqAWjRnMA/fJ8wnEfUxoPEW0hIJY/mprE6/TQMY6NPI=";
|
|
})
|
|
];
|
|
|
|
outputs = [
|
|
"out"
|
|
"lib"
|
|
"dev"
|
|
"doc"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
bison
|
|
flex
|
|
gperf
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
bash
|
|
ncurses
|
|
python3
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
configureFlags = [
|
|
"--enable-frontends=conf,mconf,nconf"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=format-security";
|
|
|
|
meta = {
|
|
description = "Out of Linux tree packaging of the kconfig infrastructure";
|
|
longDescription = ''
|
|
Configuration language and system for the Linux kernel and other
|
|
projects. Features simple syntax and grammar, limited yet adequate option
|
|
types, simple organization of options, and direct and reverse
|
|
dependencies.
|
|
'';
|
|
homepage = "https://bitbucket.org/nuttx/tools/";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|