Skip to content

Commit

Permalink
rehex: fix darwin
Browse files Browse the repository at this point in the history
add libiconv to fix darwin build and remove now unneeded frameworks
  • Loading branch information
paparodeo committed Oct 26, 2024
1 parent 193adc7 commit 2e4ef28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 5 additions & 5 deletions pkgs/applications/editors/rehex/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
, lua53Packages
, perlPackages
, gtk3
, Carbon
, Cocoa
, IOKit
}:

stdenv.mkDerivation rec {
Expand All @@ -35,15 +32,18 @@ stdenv.mkDerivation rec {
buildInputs = [ botan3 capstone jansson libunistring wxGTK32 ]
++ (with lua53Packages; [ lua busted ])
++ (with perlPackages; [ perl TemplateToolkit ])
++ lib.optionals stdenv.hostPlatform.isLinux [ gtk3 ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ Carbon Cocoa IOKit ];
++ lib.optionals stdenv.hostPlatform.isLinux [ gtk3 ];

makeFlags = [
"prefix=${placeholder "out"}"
"BOTAN_PKG=botan-3"
"CXXSTD=-std=c++20"
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "-f Makefile.osx" ];

env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_LDFLAGS = "-liconv";
};

enableParallelBuilding = true;

meta = with lib; {
Expand Down
4 changes: 1 addition & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11489,9 +11489,7 @@ with pkgs;

remarshal = with python3Packages; toPythonApplication remarshal;

rehex = darwin.apple_sdk_11_0.callPackage ../applications/editors/rehex {
inherit (darwin.apple_sdk_11_0.frameworks) Carbon Cocoa IOKit;
};
rehex = darwin.apple_sdk_11_0.callPackage ../applications/editors/rehex { };

rio = callPackage ../applications/terminal-emulators/rio { };

Expand Down

0 comments on commit 2e4ef28

Please sign in to comment.