libutp: fix build with cmake 4
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "libutp";
|
pname = "libutp";
|
||||||
version = "unstable-2017-01-02";
|
version = "0-unstable-2017-01-02";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
# Use transmission fork from post-3.3-transmission branch
|
# Use transmission fork from post-3.3-transmission branch
|
||||||
@@ -17,6 +17,15 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "CvuZLOBksIl/lS6LaqOIuzNvX3ihlIPjI3Eqwo7YJH0=";
|
sha256 = "CvuZLOBksIl/lS6LaqOIuzNvX3ihlIPjI3Eqwo7YJH0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Compatibility with CMake < 3.5 has been removed from CMake.
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace \
|
||||||
|
CMakeLists.txt \
|
||||||
|
--replace-fail \
|
||||||
|
"cmake_minimum_required(VERSION 2.8)" \
|
||||||
|
"cmake_minimum_required(VERSION 3.5)"
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|||||||
Reference in New Issue
Block a user