libbutl: 0.15.0 -> 0.16.0

This commit is contained in:
Ryan Burns 2023-09-09 17:31:09 -07:00
parent a9867af6b4
commit 5a46feaabc
3 changed files with 34 additions and 2 deletions

View File

@ -1,5 +1,6 @@
{ lib, stdenv
, build2
, DarwinTools
, fetchurl
, libuuid
, enableShared ? !stdenv.hostPlatform.isStatic
@ -8,17 +9,25 @@
stdenv.mkDerivation rec {
pname = "libbutl";
version = "0.15.0";
version = "0.16.0";
outputs = [ "out" "dev" "doc" ];
src = fetchurl {
url = "https://pkg.cppget.org/1/alpha/build2/libbutl-${version}.tar.gz";
sha256 = "sha256-yzs6DFt6peJPPaMQ3rtx+kiYu7H+bUuShcdnEN90WWI=";
hash = "sha256-MGL6P/lG2sJdJXZiTcDvdy4jmU+2jYHsvaX4eEO9J2g=";
};
nativeBuildInputs = [
build2
] ++ lib.optionals stdenv.isDarwin [
DarwinTools
];
patches = [
# Install missing .h files needed by dependers
# https://github.com/build2/libbutl/issues/5
./install-h-files.patch
];
strictDeps = true;

View File

@ -0,0 +1,22 @@
diff --git a/libbutl/buildfile b/libbutl/buildfile
index ba4ad96..f5356a1 100644
--- a/libbutl/buildfile
+++ b/libbutl/buildfile
@@ -1,7 +1,7 @@
# file : libbutl/buildfile
# license : MIT; see accompanying LICENSE file
-lib{butl}: {hxx ixx txx cxx}{** -uuid-* +uuid-io \
+lib{butl}: {h hxx ixx txx cxx}{** -uuid-* +uuid-io \
-win32-utility \
-mingw-* \
-version \
@@ -154,7 +154,7 @@ else
# Install into the libbutl/ subdirectory of, say, /usr/include/
# recreating subdirectories.
#
-{hxx ixx txx}{*}:
+{h hxx ixx txx}{*}:
{
install = include/libbutl/
install.subdirs = true

View File

@ -18898,6 +18898,7 @@ with pkgs;
# Dependency of build2, must also break cycle for this
libbutl = callPackage ../development/libraries/libbutl {
build2 = build2.bootstrap;
inherit (darwin) DarwinTools;
};
libbpkg = callPackage ../development/libraries/libbpkg { };