libcec_platform: use latest master from upstream
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
cmake,
|
||||
}:
|
||||
|
||||
@@ -13,11 +14,28 @@ stdenv.mkDerivation rec {
|
||||
owner = "Pulse-Eight";
|
||||
repo = "platform";
|
||||
rev = "p8-platform-${version}";
|
||||
sha256 = "sha256-zAI/AOLJAunv+cCQ6bOXrgkW+wl5frj3ktzx2cDeCCk=";
|
||||
hash = "sha256-zAI/AOLJAunv+cCQ6bOXrgkW+wl5frj3ktzx2cDeCCk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
patches = [
|
||||
# required for cmake 4 support
|
||||
(fetchpatch {
|
||||
name = "libcec-platform-fix-cmake4-1.patch";
|
||||
url = "https://github.com/Pulse-Eight/platform/commit/7350df98980b4e7036812b15812e3cb3c9353816.patch";
|
||||
includes = [ "CMakeLists.txt" ];
|
||||
hash = "sha256-YbxQxmXF2Iv67SjX/kMD9Df2nggBFX0fBFMyNdXXZtI=";
|
||||
})
|
||||
# required for cmake 4 support
|
||||
(fetchpatch {
|
||||
name = "libcec-platform-fix-cmake4-5.patch";
|
||||
url = "https://github.com/Pulse-Eight/platform/commit/d7faed1c696b1a6a67f114a63a0f4c085f0f9195.patch";
|
||||
includes = [ "CMakeLists.txt" ];
|
||||
hash = "sha256-T+quL5wxc1w+KyNGxW443Ud+r6FVPej6jN6oXQ5pkRs=";
|
||||
})
|
||||
];
|
||||
|
||||
cmakeFlags = lib.optional stdenv.hostPlatform.isDarwin "-DCMAKE_CXX_FLAGS='-std=c++11'";
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
Reference in New Issue
Block a user