3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #99337 from ldesgoui/fix-mumble_overlay

mumble-overlay: fix outdated install phase
This commit is contained in:
Silvan Mosberger 2020-10-02 14:07:40 +02:00 committed by GitHub
commit c04277eb1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,11 +12,13 @@ in stdenv.mkDerivation {
installPhase = ''
mkdir -p $out/lib
ln -s ${mumble}/lib/libmumble.so.1.2.* $out/lib/libmumble.so.1
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.2.* $out/lib32/libmumble.so.1
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