10 , enableShared ? !stdenv.hostPlatform.isStatic
11 , enableStatic ? !enableShared
14 stdenv.mkDerivation rec {
18 outputs = [ "out" "doc" "man" ];
21 url = "https://pkg.cppget.org/1/alpha/build2/bpkg-${version}.tar.gz";
22 hash = "sha256-sxzVidVL8dpoH82IevcwjcIWj4LQzliGv9zasTYqeok=";
41 doCheck = !stdenv.isDarwin; # tests hang
45 rm tests/rep-create.testscript
48 build2ConfigureFlags = [
49 "config.bin.lib=${build2.configSharedStatic enableShared enableStatic}"
52 postInstall = lib.optionalString stdenv.isDarwin ''
53 install_name_tool -add_rpath '${lib.getLib build2}/lib' "''${!outputBin}/bin/bpkg"
57 description = "build2 package dependency manager";
59 # https://build2.org/bpkg/doc/bpkg.xhtml
61 The build2 package dependency manager is used to manipulate build
62 configurations, packages, and repositories.
64 homepage = "https://build2.org/";
65 changelog = "https://git.build2.org/cgit/bpkg/tree/NEWS";
66 license = licenses.mit;
67 maintainers = with maintainers; [ r-burns ];
68 platforms = platforms.all;