b41113241d
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
40 lines
1,007 B
Nix
40 lines
1,007 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchurl
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "cpm";
|
|
version = "0.35.6";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/cpm-cmake/CPM.cmake/releases/download/v${version}/CPM.cmake";
|
|
sha256 = "sha256-a0fiqUtpxZrNpVZ0Aa/GesU+mpW/kM/U8el5LE2OyBU=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 $src $out/share/cpm/CPM.cmake
|
|
|
|
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;
|
|
maintainers = with maintainers; [ ken-matsui ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|