diff --git a/pkgs/by-name/cp/cpm-cmake/package.nix b/pkgs/by-name/cp/cpm-cmake/package.nix index 83d2019493c0..dbf54de2a448 100644 --- a/pkgs/by-name/cp/cpm-cmake/package.nix +++ b/pkgs/by-name/cp/cpm-cmake/package.nix @@ -1,6 +1,7 @@ -{ lib -, stdenvNoCC -, fetchFromGitHub +{ + lib, + stdenvNoCC, + fetchFromGitHub, }: stdenvNoCC.mkDerivation (finalAttrs: { @@ -14,6 +15,11 @@ stdenvNoCC.mkDerivation (finalAttrs: { hash = "sha256-KIRVztkE72juIgXquZlC6AYo78QKHBD7iCvCa+ri66k="; }; + postPatch = '' + substituteInPlace cmake/CPM.cmake \ + --replace-fail "set(CURRENT_CPM_VERSION 1.0.0-development-version)" "set(CURRENT_CPM_VERSION ${finalAttrs.version})" + ''; + dontConfigure = true; dontBuild = true; @@ -27,7 +33,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { runHook postInstall ''; - meta = with lib; { + meta = { homepage = "https://github.com/cpm-cmake/CPM.cmake"; description = "CMake's missing package manager"; longDescription = '' @@ -36,8 +42,8 @@ stdenvNoCC.mkDerivation (finalAttrs: { CMake's FetchContent module that adds version control, caching, a simple API and more. ''; - license = licenses.mit; - maintainers = [ ]; - platforms = platforms.all; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ pandapip1 ]; + platforms = lib.platforms.all; }; })