2022-07-15 02:14:41 +00:00
|
|
|
{ lib
|
2022-07-15 18:33:29 +00:00
|
|
|
, stdenvNoCC
|
2022-07-16 13:49:45 +00:00
|
|
|
, fetchurl
|
2022-07-15 02:14:41 +00:00
|
|
|
}:
|
|
|
|
|
2022-07-15 18:33:29 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-07-15 02:14:41 +00:00
|
|
|
pname = "cpm";
|
2022-09-15 04:26:34 +00:00
|
|
|
version = "0.35.6";
|
2022-07-15 02:14:41 +00:00
|
|
|
|
2022-07-16 13:49:45 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/cpm-cmake/CPM.cmake/releases/download/v${version}/CPM.cmake";
|
2022-09-15 04:26:34 +00:00
|
|
|
sha256 = "sha256-a0fiqUtpxZrNpVZ0Aa/GesU+mpW/kM/U8el5LE2OyBU=";
|
2022-07-15 02:14:41 +00:00
|
|
|
};
|
|
|
|
|
2022-07-16 13:49:45 +00:00
|
|
|
dontUnpack = true;
|
2022-07-15 02:14:41 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-07-16 08:29:43 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2022-07-16 13:49:45 +00:00
|
|
|
install -Dm644 $src $out/share/cpm/CPM.cmake
|
2022-07-16 08:29:43 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2022-07-15 02:14:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ ken-matsui ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|