Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 ninja,
7 gitUpdater,
8}:
9stdenv.mkDerivation (finalAttrs: {
10 pname = "duckx";
11 version = "1.2.2";
12
13 src = fetchFromGitHub {
14 owner = "amiremohamadi";
15 repo = "DuckX";
16 tag = "v${finalAttrs.version}";
17 hash = "sha256-qRqYcBi/a2tUSlLAa7DKPqwQsctw5/0hjV/Og1pHPQU=";
18 };
19
20 nativeBuildInputs = [
21 cmake
22 ninja
23 ];
24
25 cmakeFlags = [
26 # https://github.com/amiremohamadi/DuckX/issues/92
27 (lib.cmakeFeature "CMAKE_CXX_STANDARD" "14")
28 ];
29
30 passthru = {
31 updateScript = gitUpdater { rev-prefix = "v"; };
32 };
33
34 meta = {
35 description = "C++ library for creating and modifying Microsoft Word (.docx) files";
36 homepage = "https://github.com/amiremohamadi/DuckX";
37 changelog = "https://github.com/amiremohamadi/DuckX/releases/tag/v${finalAttrs.version}";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ titaniumtown ];
40 };
41})