spideroak: 5.1.6 -> 6.0.1
Changed deprecated ensureDir for mkdir
This commit is contained in:
parent
4f1db1f0f8
commit
0cc91c2f83
@ -12,19 +12,19 @@ let
|
|||||||
else if stdenv.system == "i686-linux" then "ld-linux.so.2"
|
else if stdenv.system == "i686-linux" then "ld-linux.so.2"
|
||||||
else throw "Spideroak client for: ${stdenv.system} not supported!";
|
else throw "Spideroak client for: ${stdenv.system} not supported!";
|
||||||
|
|
||||||
sha256 = if stdenv.system == "x86_64-linux" then "0ax5ij3fwq3q9agf7qkw2zg53fcd82llg734pq3swzpn3z1ajs38"
|
sha256 = if stdenv.system == "x86_64-linux" then "88fd785647def79ee36621fa2a8a5bea73c513de03103f068dd10bc25f3cf356"
|
||||||
else if stdenv.system == "i686-linux" then "18hvgx8bvd2khnqfn434gd4mflv0w5y8kvim72rvya2kwxsyf3i1"
|
else if stdenv.system == "i686-linux" then "8c23271291f40aa144bbf38ceb3cc2a05bed00759c87a65bd798cf8bb289d07a"
|
||||||
else throw "Spideroak client for: ${stdenv.system} not supported!";
|
else throw "Spideroak client for: ${stdenv.system} not supported!";
|
||||||
|
|
||||||
ldpath = stdenv.lib.makeSearchPath "lib" [
|
ldpath = stdenv.lib.makeSearchPath "lib" [
|
||||||
glib fontconfig libXext libX11 freetype libXrender
|
glib fontconfig libXext libX11 freetype libXrender
|
||||||
];
|
];
|
||||||
|
|
||||||
version = "5.1.6";
|
version = "6.0.1";
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
name = "spideroak-${version}";
|
name = "spideroak-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
name = "spideroak-${version}-${arch}";
|
name = "spideroak-${version}-${arch}";
|
||||||
url = "https://spideroak.com/getbuild?platform=slackware&arch=${arch}&version=${version}";
|
url = "https://spideroak.com/getbuild?platform=slackware&arch=${arch}&version=${version}";
|
||||||
@ -36,17 +36,17 @@ in stdenv.mkDerivation {
|
|||||||
unpackCmd = "tar -xzf $curSrc";
|
unpackCmd = "tar -xzf $curSrc";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
ensureDir "$out"
|
mkdir "$out"
|
||||||
cp -r "./"* "$out"
|
cp -r "./"* "$out"
|
||||||
ensureDir "$out/bin"
|
mkdir "$out/bin"
|
||||||
rm "$out/usr/bin/SpiderOak"
|
rm "$out/usr/bin/SpiderOakONE"
|
||||||
|
|
||||||
patchelf --set-interpreter ${stdenv.glibc}/lib/${interpreter} \
|
patchelf --set-interpreter ${stdenv.glibc}/lib/${interpreter} \
|
||||||
"$out/opt/SpiderOak/lib/SpiderOak"
|
"$out/opt/SpiderOakONE/lib/SpiderOakONE"
|
||||||
|
|
||||||
RPATH=$out/opt/SpiderOak/lib:${ldpath}
|
RPATH=$out/opt/SpiderOakONE/lib:${ldpath}
|
||||||
makeWrapper $out/opt/SpiderOak/lib/SpiderOak $out/bin/spideroak --set LD_LIBRARY_PATH $RPATH \
|
makeWrapper $out/opt/SpiderOakONE/lib/SpiderOakONE $out/bin/spideroak --set LD_LIBRARY_PATH $RPATH \
|
||||||
--set QT_PLUGIN_PATH $out/opt/SpiderOak/lib/plugins/ \
|
--set QT_PLUGIN_PATH $out/opt/SpiderOakONE/lib/plugins/ \
|
||||||
--set SpiderOak_EXEC_SCRIPT $out/bin/spideroak
|
--set SpiderOak_EXEC_SCRIPT $out/bin/spideroak
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user