06746a162b
These packages are all highly interdependent and have to be updated in lockstep, so I'm just doing it all in one commit - there's no benefit to having cherry-pickable commits as they wouldn't work individually.
55 lines
1.3 KiB
Nix
55 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
build2,
|
|
fetchurl,
|
|
libbutl,
|
|
enableShared ? !stdenv.hostPlatform.isStatic,
|
|
enableStatic ? !enableShared,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libbpkg";
|
|
version = "0.18.0";
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"doc"
|
|
];
|
|
|
|
src = fetchurl {
|
|
url = "https://pkg.cppget.org/1/alpha/build2/libbpkg-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-ROaIgIql1oXOqiwz8giTcz0landh6rITyzX3WxR16L4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
build2
|
|
];
|
|
buildInputs = [
|
|
libbutl
|
|
];
|
|
|
|
build2ConfigureFlags = [
|
|
"config.bin.lib=${build2.configSharedStatic enableShared enableStatic}"
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
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 = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ r-burns ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|