3332be9a8b
Build2's dependency libraries and helper programs bpkg/bdep are all built and installed separately. Adds a build2 setup hook for packaging purposes, based on those of cmake and ninja. Two small patches are applied to build2's source: one to remove store references from the stored config, and one to help build2 detect library dirs from NIX_LDFLAGS.
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ lib, stdenv
|
|
, build2
|
|
, fetchurl
|
|
, libbutl
|
|
, enableShared ? !stdenv.hostPlatform.isStatic
|
|
, enableStatic ? !enableShared
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libbpkg";
|
|
version = "0.13.0";
|
|
outputs = [ "out" "dev" "doc" ];
|
|
|
|
src = fetchurl {
|
|
url = "https://pkg.cppget.org/1/alpha/build2/libbpkg-${version}.tar.gz";
|
|
sha256 = "732849cdd5d773c589dd0ac220002fa41424784df10617adc4dea729faafb22b";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|