Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1021 B
Nix
48 lines
1021 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
coreutils,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "compiledb";
|
|
version = "0.10.7";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nickdiego";
|
|
repo = "compiledb";
|
|
tag = version;
|
|
hash = "sha256-toqBf5q1EfZVhZN5DAtxkyFF7UlyNbqxWAIWFMwacxw=";
|
|
};
|
|
|
|
build-system = with python3Packages; [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
click
|
|
bashlex
|
|
];
|
|
|
|
# fix the tests
|
|
patchPhase = ''
|
|
substituteInPlace tests/data/multiple_commands_oneline.txt \
|
|
--replace-fail "/bin/echo" "${coreutils}/bin/echo"
|
|
'';
|
|
|
|
nativeCheckInputs = [ python3Packages.pytestCheckHook ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Tool for generating Clang's JSON Compilation Database files";
|
|
mainProgram = "compiledb";
|
|
license = lib.licenses.gpl3Plus;
|
|
homepage = "https://github.com/nickdiego/compiledb";
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
};
|
|
}
|