about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libbpkg/default.nix
blob: 6315b5df0f05867a699d538531d0a40ebcf7bc01 (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
42
43
44
45
46
47
48
{ lib, stdenv
, build2
, fetchurl
, libbutl
, enableShared ? !stdenv.hostPlatform.isStatic
, enableStatic ? !enableShared
}:

stdenv.mkDerivation rec {
  pname = "libbpkg";
  version = "0.16.0";
  outputs = [ "out" "dev" "doc" ];

  src = fetchurl {
    url = "https://pkg.cppget.org/1/alpha/build2/libbpkg-${version}.tar.gz";
    hash = "sha256-h3Stt1n1057ASf3n16plr5cNGIKOjHiiuOfqrcCJ5tA=";
  };

  nativeBuildInputs = [
    build2
  ];
  buildInputs = [
    libbutl
  ];

  build2ConfigureFlags = [
    "config.bin.lib=${build2.configSharedStatic enableShared enableStatic}"
  ];

  strictDeps = true;

  doCheck = true;

  meta = with lib; {
    description = "build2 package dependency manager utility library";
    longDescription = ''
      This library defines the types and utilities for working with build2 packages.
      In particular, it provides C++ classes as well as the parser and serializer
      implementations that can be used to read, manipulate, and write package,
      repository and signature manifests.
    '';
    homepage = "https://build2.org/";
    changelog = "https://git.build2.org/cgit/libbpkg/log";
    license = licenses.mit;
    maintainers = with maintainers; [ r-burns ];
    platforms = platforms.all;
  };
}