1 { stdenv, lib, which, file, mumble, mumble_i686
5 binPath = lib.makeBinPath [ which file ];
6 in stdenv.mkDerivation {
7 pname = "mumble-overlay";
8 version = mumble.version;
11 patches = mumble.patches or [];
15 ln -s ${mumble}/lib/libmumble.so.1 $out/lib/
17 ${lib.optionalString (mumble_i686 != null) ''
19 ln -s ${mumble_i686}/lib/libmumble.so.1 $out/lib32/
22 install -Dm755 scripts/mumble-overlay $out/bin/mumble-overlay
23 sed -i "s,/usr/lib,$out/lib,g" $out/bin/mumble-overlay
24 sed -i '2iPATH="${binPath}:$PATH"' $out/bin/mumble-overlay
28 platforms = lib.platforms.linux;