12 stdenv.mkDerivation (finalAttrs: {
13 pname = "wxformbuilder";
16 src = fetchFromGitHub {
17 owner = "wxFormBuilder";
18 repo = "wxFormBuilder";
19 rev = "v${finalAttrs.version}";
20 fetchSubmodules = true;
23 substituteInPlace $out/.git-properties \
24 --replace "\$Format:%h\$" "$(git -C $out rev-parse --short HEAD)" \
25 --replace "\$Format:%(describe)\$" "$(git -C $out rev-parse --short HEAD)"
28 hash = "sha256-Ob+6MAf2iQGd3lgeN+dLfscpmYYrzD3dsN+2ZmvJog0=";
32 substituteInPlace third_party/tinyxml2/cmake/tinyxml2.pc.in \
33 --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
34 --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
35 sed -i '/fixup_bundle/d' cmake/macros.cmake
40 ] ++ lib.optionals stdenv.isDarwin [
43 ] ++ lib.optionals stdenv.isLinux [
50 ] ++ lib.optionals stdenv.isDarwin [
51 darwin.apple_sdk.frameworks.Cocoa
54 postInstall = lib.optionalString stdenv.isDarwin ''
55 mkdir -p $out/{Applications,bin}
56 mv $out/wxFormBuilder.app $out/Applications
57 makeWrapper $out/Applications/wxFormBuilder.app/Contents/MacOS/wxFormBuilder $out/bin/wxformbuilder
61 description = "RAD tool for wxWidgets GUI design";
62 homepage = "https://github.com/wxFormBuilder/wxFormBuilder";
63 license = licenses.gpl2Only;
64 mainProgram = "wxformbuilder";
65 maintainers = with maintainers; [ matthuszagh wegank ];
66 platforms = platforms.unix;