summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/conan/cli.nix
blob: 93b3a6856dc8c61b4cbf00eb95ea4c39ee3c4018 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  lib,
  stdenv,
  buildDunePackage,
  darwin,
  conan-unix,
  dune-site,
  alcotest,
  conan-database,
  crowbar,
  fmt,
  rresult,
}:

buildDunePackage {
  pname = "conan-cli";
  inherit (conan-unix) version src meta;

  buildInputs = [
    conan-unix
    dune-site
  ];

  doCheck = true;

  preCheck = ''
    export DUNE_CACHE=disabled
  '';

  nativeCheckInputs = [
    conan-database
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    darwin.sigtool # codesign
  ];

  checkInputs = [
    alcotest
    conan-database
    crowbar
    fmt
    rresult
  ];
}