Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, stdenvNoCC
3, fetchFromGitHub
4}:
5
6stdenvNoCC.mkDerivation (finalAttrs: {
7 pname = "package-project-cmake";
8 version = "1.11.0";
9
10 src = fetchFromGitHub {
11 owner = "TheLartians";
12 repo = "PackageProject.cmake";
13 rev = "v${finalAttrs.version}";
14 hash = "sha256-41cJm6eO5Q6xhARJbshi6Tesk/IxEQNsMShmDcjVqzs=";
15 };
16
17 dontConfigure = true;
18 dontBuild = true;
19
20 installPhase = ''
21 runHook preInstall
22
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/
26
27 runHook postInstall
28 '';
29
30 meta = with lib; {
31 homepage = "https://github.com/TheLartians/PackageProject.cmake";
32 description = "A CMake script for packaging C/C++ projects";
33 longDescription = ''
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.
40 '';
41 license = licenses.mit;
42 maintainers = with maintainers; [ ken-matsui ];
43 platforms = platforms.all;
44 };
45})