summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/co/compdb/package.nix
blob: 47c5e0d13289b1d91d88f1ded0d2a6c40a07bad9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  lib,
  fetchFromGitHub,
  python3,
}:

python3.pkgs.buildPythonApplication (finalAttrs: {
  pname = "compdb";
  version = "0.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Sarcasm";
    repo = "compdb";
    rev = "v${finalAttrs.version}";
    sha256 = "sha256-nFAgTrup6V5oE+LP4UWDOCgTVCv2v9HbQbkGW+oDnTg=";
  };

  build-system = with python3.pkgs; [
    setuptools
  ];

  meta = {
    description = "Command line tool to manipulate compilation databases";
    license = lib.licenses.mit;
    homepage = "https://github.com/Sarcasm/compdb";
    maintainers = [ lib.maintainers.detegr ];
    mainProgram = "compdb";
  };
})