3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/mumble/overlay.nix
Raphael Robatsch 379fc29352 pkgsi686Linux.mumble: fix build
Fixes 'static assertion failed: static_assert(sizeof(CCameraAngles) == 0x408, "");'
when compiling pkgsi686Linux.mumble, which is a dependency of x64 mumble_overlay.
2022-11-08 21:31:37 +01:00

31 lines
726 B
Nix

{ stdenv, lib, which, file, mumble, mumble_i686
}:
let
binPath = lib.makeBinPath [ which file ];
in stdenv.mkDerivation {
pname = "mumble-overlay";
version = mumble.version;
inherit (mumble) src;
patches = mumble.patches or [];
installPhase = ''
mkdir -p $out/lib
ln -s ${mumble}/lib/libmumble.so.1 $out/lib/
${lib.optionalString (mumble_i686 != null) ''
mkdir -p $out/lib32
ln -s ${mumble_i686}/lib/libmumble.so.1 $out/lib32/
''}
install -Dm755 scripts/mumble-overlay $out/bin/mumble-overlay
sed -i "s,/usr/lib,$out/lib,g" $out/bin/mumble-overlay
sed -i '2iPATH="${binPath}:$PATH"' $out/bin/mumble-overlay
'';
meta = {
platforms = lib.platforms.linux;
};
}