immer: 0.8.1 -> 0.9.1, add passthru.tests (#479977)

This commit is contained in:
Peder Bergebakken Sundt
2026-01-28 22:55:09 +00:00
committed by GitHub
+36 -18
View File
@@ -1,44 +1,62 @@
{
lib,
stdenv,
catch2,
catch2_3,
fetchFromGitHub,
cmake,
boehmgc,
boost,
fmt,
nix-update-script,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "immer";
version = "0.8.1";
version = "0.9.1";
src = fetchFromGitHub {
owner = "arximboldi";
repo = "immer";
tag = "v${version}";
hash = "sha256-Tyj2mNyLhrcFNQEn4xHC8Gz7/jtA4Dnkjtk8AAXJEw8=";
tag = "v${finalAttrs.version}";
hash = "sha256-Qrr5mDbPF9cbLi9T2IVAKPN3CkTxffoivvqGNGLdkxE=";
};
nativeBuildInputs = [
cmake
];
nativeBuildInputs = [ cmake ];
buildInputs = [
catch2
];
cmakeFlags = [ (lib.cmakeBool "immer_BUILD_TESTS" finalAttrs.finalPackage.doCheck) ];
# immer is a header only library
dontBuild = true;
buildInputs = [ ];
dontUseCmakeBuildDir = true;
doCheck = false;
strictDeps = true;
dontBuild = true;
dontUseCmakeBuildDir = true;
passthru.updateScript = nix-update-script { };
passthru = {
tests.test = finalAttrs.finalPackage.overrideAttrs (attrs: {
pname = "${attrs.pname}-test";
doCheck = true;
checkInputs = [
catch2_3
boehmgc
boost
fmt
];
checkPhase = ''
make check
'';
});
updateScript = nix-update-script { };
};
meta = {
description = "Postmodern immutable and persistent data structures for C++ value semantics at scale";
homepage = "https://sinusoid.es/immer";
changelog = "https://github.com/arximboldi/immer/releases/tag/v${version}";
changelog = "https://github.com/arximboldi/immer/releases/tag/v${finalAttrs.version}";
license = lib.licenses.boost;
maintainers = with lib.maintainers; [ sifmelcara ];
platforms = lib.platforms.all;
};
}
})