6 stdenvNoCC.mkDerivation (finalAttrs: {
7 pname = "package-project-cmake";
10 src = fetchFromGitHub {
11 owner = "TheLartians";
12 repo = "PackageProject.cmake";
13 rev = "v${finalAttrs.version}";
14 hash = "sha256-41cJm6eO5Q6xhARJbshi6Tesk/IxEQNsMShmDcjVqzs=";
23 mkdir -p $out/share/{,doc/}package-project-cmake
24 install -Dm644 CMakeLists.txt $out/share/package-project-cmake/
25 install -Dm644 README.md $out/share/doc/package-project-cmake/
31 homepage = "https://github.com/TheLartians/PackageProject.cmake";
32 description = "A CMake script for packaging C/C++ projects";
34 Help other developers use your project. A CMake script for packaging
35 C/C++ projects for simple project installation while employing
36 best-practices for maximum compatibility. Creating installable
37 CMake scripts always requires a large amount of boilerplate code
38 to get things working. This small script should simplify the CMake
39 packaging process into a single, easy-to-use command.
41 license = licenses.mit;
42 maintainers = with maintainers; [ ken-matsui ];
43 platforms = platforms.all;