12 stdenv.mkDerivation (finalAttrs: {
13 pname = "wxformbuilder";
14 version = "unstable-2023-04-21";
16 src = fetchFromGitHub {
17 owner = "wxFormBuilder";
18 repo = "wxFormBuilder";
19 rev = "f026a8e1a7f68e794638f637e53845f8f04869ef";
20 fetchSubmodules = true;
21 hash = "sha256-48J8osSBb5x9b8MYWZ5QGF6rWgwtcJ0PLLAYViDr50M=";
25 substituteInPlace .git-properties \
26 --replace "\$Format:%h\$" "${builtins.substring 0 7 finalAttrs.src.rev}" \
27 --replace "\$Format:%(describe)\$" "${builtins.substring 0 7 finalAttrs.src.rev}"
28 sed -i '/fixup_bundle/d' cmake/macros.cmake
33 ] ++ lib.optionals stdenv.isDarwin [
36 ] ++ lib.optionals stdenv.isLinux [
43 ] ++ lib.optionals stdenv.isDarwin [
44 darwin.apple_sdk.frameworks.Cocoa
47 postInstall = lib.optionalString stdenv.isDarwin ''
48 mkdir -p $out/{Applications,bin}
49 mv $out/wxFormBuilder.app $out/Applications
50 makeWrapper $out/Applications/wxFormBuilder.app/Contents/MacOS/wxFormBuilder $out/bin/wxformbuilder
54 description = "RAD tool for wxWidgets GUI design";
55 homepage = "https://github.com/wxFormBuilder/wxFormBuilder";
56 license = licenses.gpl2Only;
57 mainProgram = "wxformbuilder";
58 maintainers = with maintainers; [ matthuszagh wegank ];
59 platforms = platforms.unix;