Files
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

41 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "websocket++";
version = "0.8.2";
src = fetchFromGitHub {
owner = "zaphoyd";
repo = "websocketpp";
rev = finalAttrs.version;
sha256 = "sha256-9fIwouthv2GcmBe/UPvV7Xn9P2o0Kmn2hCI4jCh0hPM=";
};
patches = [
# Fix build with cmake4
(fetchpatch {
url = "https://github.com/zaphoyd/websocketpp/commit/deb0a334471362608958ce59a6b0bcd3e5b73c24.patch?full_index=1";
hash = "sha256-bFCHwtRuCFz9vr4trmmBLziPSlEx6SNjsTcBv9zV8go=";
})
# Fix build with boost187/newer asio
# https://github.com/zaphoyd/websocketpp/pull/1164
./websocketpp-0.8.2-boost-1.87-compat.patch
];
nativeBuildInputs = [ cmake ];
meta = {
homepage = "https://www.zaphoyd.com/websocketpp/";
description = "C++/Boost Asio based websocket client/server library";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ revol-xut ];
};
})