blob: 8b0965d4d59213b815b05d0b801966fe23f10a93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
{
stdenv,
fetchFromGitHub,
cmake,
ninja,
core,
openssl,
libxml2,
nix-update-script,
meta,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "azure-sdk-for-cpp-data-tables";
version = "1.0.0-beta.6";
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
owner = "Azure";
repo = "azure-sdk-for-cpp";
tag = "azure-data-tables_1.0.0-beta.6";
hash = "sha256-gfkjoA16UP6ToIueYPfhQFh+LEhlVtvTk3qRJoHR5OY=";
};
sourceRoot = "${finalAttrs.src.name}/sdk/tables/azure-data-tables";
postPatch = ''
sed -i '/CMAKE_CXX_STANDARD/d' CMakeLists.txt
'';
strictDeps = true;
nativeBuildInputs = [
cmake
ninja
];
buildInputs = [
openssl
libxml2
];
propagatedBuildInputs = [ core ];
env = {
AZURE_SDK_DISABLE_AUTO_VCPKG = 1;
};
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DWARNINGS_AS_ERRORS=OFF"
];
postInstall = ''
moveToOutput "share" "$dev"
moveToOutput "share/$(basename "$sourceRoot")-cpp/copyright" "$out"
'';
# See note in ./core.nix.
doCheck = false;
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"azure-data-tables_(.*)"
];
};
meta = (
meta
// {
description = "Azure Tables client library for C++";
changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/tables/azure-data-tables/CHANGELOG.md";
}
);
})
|