Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
gtest,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "kassert";
|
|
version = "0.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kamping-site";
|
|
repo = "kassert";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-5UndFUhKtHPFPLfYP0EI/r+eoAptcQBheznALfxh27s=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [
|
|
# doc generation require git clone doxygen-awesome-css
|
|
(lib.cmakeBool "KASSERT_BUILD_DOCS" false)
|
|
(lib.cmakeBool "KASSERT_BUILD_TESTS" finalAttrs.finalPackage.doCheck)
|
|
(lib.cmakeBool "KASSERT_USE_BUNDLED_GTEST" false)
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
nativeCheckInputs = [ gtest ];
|
|
|
|
meta = {
|
|
description = "Karlsruhe assertion library for C++";
|
|
homepage = "https://kamping-site.github.io/kassert/";
|
|
downloadPage = "https://github.com/kamping-site/kassert";
|
|
changelog = "https://github.com/kamping-site/kasser/releases/tag/v${finalAttrs.version}";
|
|
license = with lib.licenses; [ mit ];
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ qbisi ];
|
|
};
|
|
})
|