wxformbuilder: unstable-2023-04-21 -> 4.0.0

This commit is contained in:
Weijia Wang 2023-11-20 17:54:56 +01:00
parent 5d11cc77b2
commit a43c1c1090

View File

@ -11,20 +11,27 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "wxformbuilder"; pname = "wxformbuilder";
version = "unstable-2023-04-21"; version = "4.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wxFormBuilder"; owner = "wxFormBuilder";
repo = "wxFormBuilder"; repo = "wxFormBuilder";
rev = "f026a8e1a7f68e794638f637e53845f8f04869ef"; rev = "v${finalAttrs.version}";
fetchSubmodules = true; fetchSubmodules = true;
hash = "sha256-48J8osSBb5x9b8MYWZ5QGF6rWgwtcJ0PLLAYViDr50M="; leaveDotGit = true;
postFetch = ''
substituteInPlace $out/.git-properties \
--replace "\$Format:%h\$" "$(git -C $out rev-parse --short HEAD)" \
--replace "\$Format:%(describe)\$" "$(git -C $out rev-parse --short HEAD)"
rm -rf $out/.git
'';
hash = "sha256-Lqta+u9WVwUREsR7aH+2DJn0oM5QwlwRSBImuwNkmS4=";
}; };
postPatch = '' postPatch = ''
substituteInPlace .git-properties \ substituteInPlace third_party/tinyxml2/cmake/tinyxml2.pc.in \
--replace "\$Format:%h\$" "${builtins.substring 0 7 finalAttrs.src.rev}" \ --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
--replace "\$Format:%(describe)\$" "${builtins.substring 0 7 finalAttrs.src.rev}" --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
sed -i '/fixup_bundle/d' cmake/macros.cmake sed -i '/fixup_bundle/d' cmake/macros.cmake
''; '';