about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/analysis/banana-vera/default.nix
blob: 0511f4ccbe70d5c65288dd644dcdd66cb5fa7b3f (plain) (blame)
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
31
32
33
34
35
36
37
38
39
40
41
{ lib
, stdenv
, fetchFromGitHub
, cmake
, python310
, tcl
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "banana-vera";
  version = "1.3.0-python3.10";

  src = fetchFromGitHub {
    owner = "Epitech";
    repo = "banana-vera";
    rev = "refs/tags/v${finalAttrs.version}";
    hash = "sha256-1nAKhUltQS1301JNrr0PQQrrf2W9Hj5gk1nbUhN4cXw=";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [
    python310
    python310.pkgs.boost
    tcl
  ];

  cmakeFlags = [
    "-DVERA_LUA=OFF"
    "-DVERA_USE_SYSTEM_BOOST=ON"
    "-DPANDOC=OFF"
  ];

  meta = {
    mainProgram = "vera++";
    description = "A fork of vera using python3.10";
    homepage = "https://github.com/Epitech/banana-vera";
    license = lib.licenses.boost;
    maintainers = with lib.maintainers; [ sigmanificient ];
    platforms = lib.platforms.linux ++ lib.platforms.darwin;
  };
})