2022-12-28 21:21:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "package-project-cmake";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.11.2";
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TheLartians";
|
|
|
|
repo = "PackageProject.cmake";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-2u7H2ZR7eQ6eoRIVZ1WBxw9K93E8BVYErZNDe1Jl8rg=";
|
2022-12-28 21:21:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-12-28 21:21:41 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
})
|