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