2022-07-18 16:21:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
2022-12-17 10:02:37 +00:00
|
|
|
, fetchFromGitHub
|
2022-07-18 16:21:45 +00:00
|
|
|
}:
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "cpm-cmake";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.40.0";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cpm-cmake";
|
|
|
|
repo = "cpm.cmake";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-307U/7gO8Ps5UvslYGOrVKHRjO9TYJrYsnAzu0Kljt8=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
mkdir -p $out/share/{,doc/}cpm
|
|
|
|
install -Dm644 cmake/CPM.cmake $out/share/cpm/CPM.cmake
|
|
|
|
install -Dm644 README.md CONTRIBUTING.md $out/share/doc/cpm/
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/cpm-cmake/CPM.cmake";
|
|
|
|
description = "CMake's missing package manager";
|
|
|
|
longDescription = ''
|
|
|
|
CPM.cmake is a cross-platform CMake script that adds dependency
|
|
|
|
management capabilities to CMake. It's built as a thin wrapper around
|
|
|
|
CMake's FetchContent module that adds version control, caching, a
|
|
|
|
simple API and more.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
2023-03-15 16:39:30 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-07-18 16:21:45 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2022-12-17 10:02:37 +00:00
|
|
|
})
|