2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, which, file, mumble, mumble_i686
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
binPath = lib.makeBinPath [ which file ];
|
|
|
|
in stdenv.mkDerivation {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "mumble-overlay";
|
|
|
|
version = mumble.version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
inherit (mumble) src;
|
2022-11-21 17:40:18 +00:00
|
|
|
patches = mumble.patches or [];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib
|
2020-10-07 09:15:18 +00:00
|
|
|
ln -s ${mumble}/lib/libmumble.so.1 $out/lib/
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
${lib.optionalString (mumble_i686 != null) ''
|
|
|
|
mkdir -p $out/lib32
|
2020-10-07 09:15:18 +00:00
|
|
|
ln -s ${mumble_i686}/lib/libmumble.so.1 $out/lib32/
|
2020-04-24 23:36:52 +00:00
|
|
|
''}
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
install -Dm755 auxiliary_files/run_scripts/mumble-overlay.in $out/bin/mumble-overlay
|
2020-04-24 23:36:52 +00:00
|
|
|
sed -i "s,/usr/lib,$out/lib,g" $out/bin/mumble-overlay
|
|
|
|
sed -i '2iPATH="${binPath}:$PATH"' $out/bin/mumble-overlay
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2021-01-17 00:15:33 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|