2016-04-24 15:49:22 +00:00
|
|
|
{ stdenv, lib, which, file, mumble, mumble_i686
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
binPath = lib.makeBinPath [ which file ];
|
|
|
|
in stdenv.mkDerivation {
|
2021-07-12 10:51:53 +00:00
|
|
|
pname = "mumble-overlay";
|
|
|
|
version = mumble.version;
|
2016-04-24 15:49:22 +00:00
|
|
|
|
|
|
|
inherit (mumble) src;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib
|
2020-10-01 22:10:30 +00:00
|
|
|
ln -s ${mumble}/lib/libmumble.so.1 $out/lib/
|
|
|
|
|
2016-04-24 15:49:22 +00:00
|
|
|
${lib.optionalString (mumble_i686 != null) ''
|
|
|
|
mkdir -p $out/lib32
|
2020-10-01 22:10:30 +00:00
|
|
|
ln -s ${mumble_i686}/lib/libmumble.so.1 $out/lib32/
|
2016-04-24 15:49:22 +00:00
|
|
|
''}
|
2020-10-01 22:10:30 +00:00
|
|
|
|
2016-04-24 15:49:22 +00:00
|
|
|
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
|
|
|
|
'';
|
2016-08-02 16:06:29 +00:00
|
|
|
|
|
|
|
meta = {
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2016-04-24 15:49:22 +00:00
|
|
|
}
|