2021-10-28 06:52:43 +00:00
|
|
|
{ lib, stdenv
|
|
|
|
, build2
|
|
|
|
, fetchurl
|
|
|
|
, libbutl
|
|
|
|
, enableShared ? !stdenv.hostPlatform.isStatic
|
|
|
|
, enableStatic ? !enableShared
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libbpkg";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "0.15.0";
|
2021-10-28 06:52:43 +00:00
|
|
|
outputs = [ "out" "dev" "doc" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://pkg.cppget.org/1/alpha/build2/libbpkg-${version}.tar.gz";
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-KfvkG6bHSU8wTZDKGeEfI1AV9T8uSYZHePMlmjpBXHc=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|