wxformbuilder: unstable-2022-09-26 -> unstable-2023-04-21
This commit is contained in:
parent
9b5bd90d79
commit
15e9fa2593
|
@ -2,45 +2,48 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cmake
|
, cmake
|
||||||
|
, darwin
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, shared-mime-info
|
, shared-mime-info
|
||||||
, wxGTK32
|
|
||||||
, boost
|
, boost
|
||||||
, Cocoa
|
, wxGTK32
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "wxFormBuilder";
|
pname = "wxFormBuilder";
|
||||||
version = "unstable-2022-09-26";
|
version = "unstable-2023-04-21";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "wxFormBuilder";
|
owner = "wxFormBuilder";
|
||||||
repo = "wxFormBuilder";
|
repo = "wxFormBuilder";
|
||||||
rev = "e2e4764f1f4961c654733287c6e84d7738b4ba2b";
|
rev = "f026a8e1a7f68e794638f637e53845f8f04869ef";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
sha256 = "sha256-DLdwQH3s/ZNVq+A/qtZRy7dA/Ctp2qkOmi6M+rSb4MM=";
|
hash = "sha256-48J8osSBb5x9b8MYWZ5QGF6rWgwtcJ0PLLAYViDr50M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace .git-properties \
|
||||||
|
--replace "\$Format:%h\$" "${builtins.substring 0 7 finalAttrs.src.rev}" \
|
||||||
|
--replace "\$Format:%(describe)\$" "${builtins.substring 0 7 finalAttrs.src.rev}"
|
||||||
|
sed -i '/fixup_bundle/d' cmake/macros.cmake
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
darwin.sigtool
|
||||||
makeWrapper
|
makeWrapper
|
||||||
] ++ lib.optionals stdenv.isLinux [
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
shared-mime-info
|
shared-mime-info
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
wxGTK32
|
|
||||||
boost
|
boost
|
||||||
|
wxGTK32
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
Cocoa
|
darwin.apple_sdk.frameworks.Cocoa
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
sed -i 's/FATAL_ERROR/WARNING/' cmake/revision-git*.cmake
|
|
||||||
sed -i '/fixup_bundle/d;/codesign/d' cmake/macros.cmake
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = lib.optionalString stdenv.isDarwin ''
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
||||||
mkdir -p $out/{Applications,bin}
|
mkdir -p $out/{Applications,bin}
|
||||||
mv $out/wxFormBuilder.app $out/Applications
|
mv $out/wxFormBuilder.app $out/Applications
|
||||||
|
@ -54,4 +57,4 @@ stdenv.mkDerivation {
|
||||||
maintainers = with maintainers; [ matthuszagh wegank ];
|
maintainers = with maintainers; [ matthuszagh wegank ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
|
@ -24363,9 +24363,7 @@ with pkgs;
|
||||||
wt3
|
wt3
|
||||||
wt4;
|
wt4;
|
||||||
|
|
||||||
wxformbuilder = callPackage ../development/tools/wxformbuilder {
|
wxformbuilder = callPackage ../development/tools/wxformbuilder { };
|
||||||
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
|
||||||
};
|
|
||||||
|
|
||||||
wxGTK31 = callPackage ../development/libraries/wxwidgets/wxGTK31.nix {
|
wxGTK31 = callPackage ../development/libraries/wxwidgets/wxGTK31.nix {
|
||||||
inherit (darwin.stubs) setfile;
|
inherit (darwin.stubs) setfile;
|
||||||
|
|
Loading…
Reference in a new issue