python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / cpm / default.nix
blob1d5bdc3b694ff1b824a9c32d3a95fa73db7d9ece
1 { lib
2 , stdenvNoCC
3 , fetchurl
4 }:
6 stdenvNoCC.mkDerivation rec {
7   pname = "cpm";
8   version = "0.36.0";
10   src = fetchurl {
11     url = "https://github.com/cpm-cmake/CPM.cmake/releases/download/v${version}/CPM.cmake";
12     sha256 = "sha256-F5YA1Z8OdSihipjo7QhqIZMKBcvm9WyfJ5l4WZwW9Cc=";
13   };
15   dontUnpack = true;
16   dontConfigure = true;
17   dontBuild = true;
19   installPhase = ''
20     runHook preInstall
22     install -Dm644 $src $out/share/cpm/CPM.cmake
24     runHook postInstall
25   '';
27   meta = with lib; {
28     homepage = "https://github.com/cpm-cmake/CPM.cmake";
29     description = "CMake's missing package manager";
30     longDescription = ''
31       CPM.cmake is a cross-platform CMake script that adds dependency
32       management capabilities to CMake. It's built as a thin wrapper around
33       CMake's FetchContent module that adds version control, caching, a
34       simple API and more.
35     '';
36     license = licenses.mit;
37     maintainers = with maintainers; [ ken-matsui ];
38     platforms = platforms.all;
39   };