spotify: unpack into temporary directory to fix output permissions
This commit is contained in:
parent
8e83bb4220
commit
f2806a09c4
|
@ -56,15 +56,22 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
buildInputs = [ dpkg makeWrapper ];
|
buildInputs = [ dpkg makeWrapper ];
|
||||||
|
|
||||||
unpackPhase = "true";
|
unpackPhase = ''
|
||||||
|
runHook preUnpack
|
||||||
|
dpkg-deb -x $src .
|
||||||
|
runHook postUnpack
|
||||||
|
'';
|
||||||
|
|
||||||
|
configurePhase = "runHook preConfigure; runHook postConfigure";
|
||||||
|
buildPhase = "runHook preBuild; runHook postBuild";
|
||||||
|
|
||||||
installPhase =
|
installPhase =
|
||||||
''
|
''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
libdir=$out/lib/spotify
|
libdir=$out/lib/spotify
|
||||||
mkdir -p $libdir
|
mkdir -p $libdir
|
||||||
dpkg-deb -x $src $out
|
mv ./usr/* $out/
|
||||||
mv $out/usr/* $out/
|
|
||||||
rm -rf $out/usr
|
|
||||||
|
|
||||||
# Work around Spotify referring to a specific minor version of
|
# Work around Spotify referring to a specific minor version of
|
||||||
# OpenSSL.
|
# OpenSSL.
|
||||||
|
@ -96,6 +103,8 @@ stdenv.mkDerivation {
|
||||||
ln -s "$out/share/spotify/icons/spotify-linux-$i.png" \
|
ln -s "$out/share/spotify/icons/spotify-linux-$i.png" \
|
||||||
"$out/share/icons/hicolor/$ixi/apps/spotify-client.png"
|
"$out/share/icons/hicolor/$ixi/apps/spotify-client.png"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
Loading…
Reference in New Issue