44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "cpm-cmake";
|
|
version = "0.39.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cpm-cmake";
|
|
repo = "cpm.cmake";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-cDFt+fDpb/gDlFx+3C5Hw/ybf4hdjZOrpeNR8yBwd1M=";
|
|
};
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
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/
|
|
|
|
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; [ ];
|
|
platforms = platforms.all;
|
|
};
|
|
})
|