depot/third_party/nixpkgs/pkgs/development/tools/package-project-cmake/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

45 lines
1.3 KiB
Nix

{ lib
, stdenvNoCC
, fetchFromGitHub
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "package-project-cmake";
version = "1.10.0";
src = fetchFromGitHub {
owner = "TheLartians";
repo = "PackageProject.cmake";
rev = "v${finalAttrs.version}";
hash = "sha256-tDjWknwqN8NLx6GX16WOn0JUDAyaGU9HA7fTsHNLx9s=";
};
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/{,doc/}package-project-cmake
install -Dm644 CMakeLists.txt $out/share/package-project-cmake/
install -Dm644 README.md $out/share/doc/package-project-cmake/
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/TheLartians/PackageProject.cmake";
description = "A CMake script for packaging C/C++ projects";
longDescription = ''
Help other developers use your project. A CMake script for packaging
C/C++ projects for simple project installation while employing
best-practices for maximum compatibility. Creating installable
CMake scripts always requires a large amount of boilerplate code
to get things working. This small script should simplify the CMake
packaging process into a single, easy-to-use command.
'';
license = licenses.mit;
maintainers = with maintainers; [ ken-matsui ];
platforms = platforms.all;
};
})