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
1007 B
Nix
Raw Normal View History

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