Skip to content

Commit

Permalink
mtxclient: 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 da77875 commit 0a0afc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkgs/development/libraries/mtxclient/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ stdenv.mkDerivation rec {
spdlog
];

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

meta = with lib; {
description = "Client API library for the Matrix protocol.";
homepage = "https://github.com/Nheko-Reborn/mtxclient";
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 @@ -22021,7 +22021,9 @@ with pkgs;

mtpfs = callPackage ../tools/filesystems/mtpfs { };

mtxclient = callPackage ../development/libraries/mtxclient { };
mtxclient = callPackage ../development/libraries/mtxclient {
stdenv = if stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU then gcc11Stdenv else stdenv;
};

mu = callPackage ../tools/networking/mu {
texinfo = texinfo4;
Expand Down

0 comments on commit 0a0afc9

Please sign in to comment.