mirror of
https://github.com/oqyude/nixos.git
synced 2026-08-09 08:03:16 +03:00
termux-api: set CMAKE_POLICY_VERSION_MINIMUM=3.5
Upstream CMakeLists.txt declares cmake_minimum_required(3.0.0), but modern CMake removed compatibility with < 3.5 and refuses to configure.
This commit is contained in:
@@ -32,6 +32,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
|
# CMakeLists.txt declares cmake_minimum_required(VERSION 3.0.0), but modern
|
||||||
|
# CMake refuses to configure with < 3.5. Bump the floor via policy override.
|
||||||
|
cmakeFlags = [ "-DCMAKE_POLICY_VERSION_MINIMUM=3.5" ];
|
||||||
|
|
||||||
# termux-api.c hardcodes PREFIX for `am` and `termux-callback`. On
|
# termux-api.c hardcodes PREFIX for `am` and `termux-callback`. On
|
||||||
# nix-on-droid `am` comes from android-integration.am (termux-am) via PATH;
|
# nix-on-droid `am` comes from android-integration.am (termux-am) via PATH;
|
||||||
# termux-callback lives in our own libexec dir.
|
# termux-callback lives in our own libexec dir.
|
||||||
|
|||||||
Reference in New Issue
Block a user