Skip to content

Commit

Permalink
nheko: fix build on aarch64-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank committed Jan 22, 2023
1 parent 0a0afc9 commit 08b6bd9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{ lib
, stdenv
, mkDerivation
, fetchFromGitHub
, cmake
, asciidoc
Expand All @@ -26,12 +25,13 @@
, qttools
, re2
, spdlog
, wrapQtAppsHook
, voipSupport ? true
, gst_all_1
, libnice
}:

mkDerivation rec {
stdenv.mkDerivation rec {
pname = "nheko";
version = "0.11.1";

Expand All @@ -47,6 +47,7 @@ mkDerivation rec {
cmake
lmdbxx
pkg-config
wrapQtAppsHook
];

buildInputs = [
Expand Down Expand Up @@ -82,6 +83,9 @@ mkDerivation rec {
"-DCOMPILE_QML=ON" # see https://github.com/Nheko-Reborn/nheko/issues/389
];

# https://github.com/NixOS/nixpkgs/issues/201254
NIX_LDFLAGS = lib.optionalString (stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU) "-lgcc";

preFixup = lib.optionalString voipSupport ''
# add gstreamer plugins path to the wrapper
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31545,7 +31545,9 @@ with pkgs;

ngt = callPackage ../development/libraries/ngt { };

nheko = libsForQt5.callPackage ../applications/networking/instant-messengers/nheko { };
nheko = libsForQt5.callPackage ../applications/networking/instant-messengers/nheko {
stdenv = if stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU then gcc11Stdenv else stdenv;
};

nomacs = libsForQt5.callPackage ../applications/graphics/nomacs { };

Expand Down

0 comments on commit 08b6bd9

Please sign in to comment.