mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
wxformbuilder: unstable-2023-04-21 -> 4.0.0
This commit is contained in:
parent
5d11cc77b2
commit
a43c1c1090
@ -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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user