Merge pull request #257341 from wegank/wxformbuilder-refactor

wxformbuilder: refactor
This commit is contained in:
Weijia Wang 2023-09-26 07:49:38 +02:00 committed by GitHub
commit 9207b884da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "wxFormBuilder"; pname = "wxformbuilder";
version = "unstable-2023-04-21"; version = "unstable-2023-04-21";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -47,13 +47,14 @@ stdenv.mkDerivation (finalAttrs: {
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
makeWrapper $out/{Applications/wxFormBuilder.app/Contents/MacOS,bin}/wxFormBuilder makeWrapper $out/Applications/wxFormBuilder.app/Contents/MacOS/wxFormBuilder $out/bin/wxformbuilder
''; '';
meta = with lib; { meta = with lib; {
description = "RAD tool for wxWidgets GUI design"; description = "RAD tool for wxWidgets GUI design";
homepage = "https://github.com/wxFormBuilder/wxFormBuilder"; homepage = "https://github.com/wxFormBuilder/wxFormBuilder";
license = licenses.gpl2Only; license = licenses.gpl2Only;
mainProgram = "wxformbuilder";
maintainers = with maintainers; [ matthuszagh wegank ]; maintainers = with maintainers; [ matthuszagh wegank ];
platforms = platforms.unix; platforms = platforms.unix;
}; };