Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, fetchFromGitHub, pytest, bashlex, click, shutilwhich, gcc, coreutils,}:
buildPythonPackage rec { pname = "compiledb"; version = "0.10.1"; format = "setuptools";
src = fetchFromGitHub { owner = "nickdiego"; repo = pname; rev = "v${version}"; sha256 = "0qricdgqzry7j3rmgwyd43av3c2kxpzkh6f9zcqbzrjkn78qbpd4"; };
# fix the tests patchPhase = '' substituteInPlace tests/data/multiple_commands_oneline.txt \ --replace /bin/echo ${coreutils}/bin/echo '';
nativeCheckInputs = [ pytest gcc coreutils ]; propagatedBuildInputs = [ click bashlex shutilwhich ];
checkPhase = '' pytest '';
meta = with lib; { description = "Tool for generating Clang's JSON Compilation Database files"; mainProgram = "compiledb"; license = licenses.gpl3; homepage = "https://github.com/nickdiego/compiledb"; maintainers = with maintainers; [ multun ]; };}