diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-03-14 13:05:47 +0200 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-03-14 13:05:47 +0200 |
commit | ca33e8f4e0af210117026d8904547677e891262a (patch) | |
tree | 120e8d853382e4729c7b9261fd7feae153b73a9c /pkgs/development | |
parent | b29350a3eab5031017663c4ce070fe1be8255422 (diff) |
bossa: migrate to wxGTK32
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/embedded/bossa/default.nix | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/pkgs/development/embedded/bossa/default.nix b/pkgs/development/embedded/bossa/default.nix index f53e49edaed4a..58ee0642fb380 100644 --- a/pkgs/development/embedded/bossa/default.nix +++ b/pkgs/development/embedded/bossa/default.nix @@ -1,4 +1,11 @@ -{ lib, stdenv, fetchFromGitHub, wxGTK, libX11, readline }: +{ lib +, stdenv +, fetchFromGitHub +, wxGTK32 +, libX11 +, readline +, darwin +}: let # BOSSA needs a "bin2c" program to embed images. @@ -24,11 +31,27 @@ stdenv.mkDerivation rec { sha256 = "sha256-8M3MU/+Y1L6SaQ1yoC9Z27A/gGruZdopLnL1z7h7YJw="; }; + postPatch = '' + substituteInPlace Makefile \ + --replace "-arch x86_64" "" + ''; + nativeBuildInputs = [ bin2c ]; - buildInputs = [ wxGTK libX11 readline ]; + buildInputs = [ + wxGTK32 + libX11 + readline + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Cocoa + ]; - # Explicitly specify targets so they don't get stripped. - makeFlags = [ "bin/bossac" "bin/bossash" "bin/bossa" ]; + makeFlags = [ + "WXVERSION=3.2" + # Explicitly specify targets so they don't get stripped. + "bin/bossac" + "bin/bossash" + "bin/bossa" + ]; env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; installPhase = '' @@ -47,6 +70,6 @@ stdenv.mkDerivation rec { ''; homepage = "http://www.shumatech.com/web/products/bossa"; license = licenses.bsd3; - platforms = platforms.linux; + platforms = platforms.unix; }; } |