nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 cmake, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "websocket++"; 11 version = "0.8.2"; 12 13 src = fetchFromGitHub { 14 owner = "zaphoyd"; 15 repo = "websocketpp"; 16 rev = finalAttrs.version; 17 sha256 = "sha256-9fIwouthv2GcmBe/UPvV7Xn9P2o0Kmn2hCI4jCh0hPM="; 18 }; 19 20 patches = [ 21 # Fix build with cmake4 22 (fetchpatch { 23 url = "https://github.com/zaphoyd/websocketpp/commit/deb0a334471362608958ce59a6b0bcd3e5b73c24.patch?full_index=1"; 24 hash = "sha256-bFCHwtRuCFz9vr4trmmBLziPSlEx6SNjsTcBv9zV8go="; 25 }) 26 # Fix build with boost187/newer asio 27 # https://github.com/zaphoyd/websocketpp/pull/1164 28 ./websocketpp-0.8.2-boost-1.87-compat.patch 29 ]; 30 31 nativeBuildInputs = [ cmake ]; 32 33 meta = { 34 homepage = "https://www.zaphoyd.com/websocketpp/"; 35 description = "C++/Boost Asio based websocket client/server library"; 36 license = lib.licenses.bsd3; 37 platforms = lib.platforms.unix; 38 maintainers = with lib.maintainers; [ revol-xut ]; 39 }; 40})