2022-07-15 03:14:41 +01:00
|
|
|
{ lib
|
2022-07-15 19:33:29 +01:00
|
|
|
, stdenvNoCC
|
2022-07-15 03:14:41 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2022-07-15 19:33:29 +01:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-07-15 03:14:41 +01:00
|
|
|
pname = "cpm";
|
|
|
|
version = "0.35.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cpm-cmake";
|
|
|
|
repo = "CPM.cmake";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-Oon/5iwkUUASsUDvde69iEwLe8/CAzwYKYsyzH5K+V0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p ${placeholder "out"}/share/cpm/
|
|
|
|
cp ./cmake/CPM.cmake ${placeholder "out"}/share/cpm/
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|