nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 build2,
5 fetchurl,
6 libbpkg,
7 libbutl,
8 libodb,
9 libodb-sqlite,
10 enableShared ? !stdenv.hostPlatform.isStatic,
11 enableStatic ? !enableShared,
12}:
13
14stdenv.mkDerivation rec {
15 pname = "bdep";
16 version = "0.17.0";
17
18 outputs = [
19 "out"
20 "doc"
21 "man"
22 ];
23 src = fetchurl {
24 url = "https://pkg.cppget.org/1/alpha/build2/bdep-${version}.tar.gz";
25 hash = "sha256-+2Hl5kanxWJmOpfePAvvSBSmG3kZLQv/kYIkT4J+kaQ=";
26 };
27
28 strictDeps = true;
29 nativeBuildInputs = [
30 build2
31 ];
32 buildInputs = [
33 libbpkg
34 libbutl
35 libodb
36 libodb-sqlite
37 ];
38
39 build2ConfigureFlags = [
40 "config.bin.lib=${build2.configSharedStatic enableShared enableStatic}"
41 ];
42
43 meta = with lib; {
44 description = "Build2 project dependency manager";
45 mainProgram = "bdep";
46 # https://build2.org/bdep/doc/bdep.xhtml
47 longDescription = ''
48 The build2 project dependency manager is used to manage the dependencies
49 of a project during development.
50 '';
51 homepage = "https://build2.org/";
52 changelog = "https://git.build2.org/cgit/bdep/tree/NEWS";
53 license = licenses.mit;
54 maintainers = with maintainers; [ r-burns ];
55 platforms = platforms.all;
56 };
57}