Files
nixpkgs/pkgs/by-name/cp/cppclean/package.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
797 B
Nix

{
lib,
fetchFromGitHub,
python3Packages,
}:
python3Packages.buildPythonApplication rec {
pname = "cppclean";
version = "0.13";
format = "pyproject";
src = fetchFromGitHub {
owner = "myint";
repo = "cppclean";
rev = "v${version}";
sha256 = "081bw7kkl7mh3vwyrmdfrk3fgq8k5laacx7hz8fjpchrvdrkqph0";
};
postUnpack = ''
patchShebangs .
'';
build-system = with python3Packages; [
setuptools
];
checkPhase = ''
./test.bash
'';
meta = {
description = "Finds problems in C++ source that slow development of large code bases";
mainProgram = "cppclean";
homepage = "https://github.com/myint/cppclean";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ nthorne ];
platforms = lib.platforms.linux;
};
}