3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/cpm/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1,007 B
Nix
Raw Normal View History

2022-07-15 03:14:41 +01:00
{ lib
, stdenvNoCC
, fetchurl
2022-07-15 03:14:41 +01:00
}:
stdenvNoCC.mkDerivation rec {
2022-07-15 03:14:41 +01:00
pname = "cpm";
2022-10-05 09:56:24 +01:00
version = "0.36.0";
2022-07-15 03:14:41 +01:00
src = fetchurl {
url = "https://github.com/cpm-cmake/CPM.cmake/releases/download/v${version}/CPM.cmake";
2022-10-05 09:56:24 +01:00
sha256 = "sha256-F5YA1Z8OdSihipjo7QhqIZMKBcvm9WyfJ5l4WZwW9Cc=";
2022-07-15 03:14:41 +01:00
};
dontUnpack = true;
2022-07-15 03:14:41 +01:00
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
install -Dm644 $src $out/share/cpm/CPM.cmake
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;
};
}