spideroak: 5.1.6 -> 6.0.1

Changed deprecated ensureDir for mkdir

+12 -12
+12 -12
pkgs/applications/networking/spideroak/default.nix
··· 12 12 else if stdenv.system == "i686-linux" then "ld-linux.so.2" 13 13 else throw "Spideroak client for: ${stdenv.system} not supported!"; 14 14 15 - sha256 = if stdenv.system == "x86_64-linux" then "0ax5ij3fwq3q9agf7qkw2zg53fcd82llg734pq3swzpn3z1ajs38" 16 - else if stdenv.system == "i686-linux" then "18hvgx8bvd2khnqfn434gd4mflv0w5y8kvim72rvya2kwxsyf3i1" 15 + sha256 = if stdenv.system == "x86_64-linux" then "88fd785647def79ee36621fa2a8a5bea73c513de03103f068dd10bc25f3cf356" 16 + else if stdenv.system == "i686-linux" then "8c23271291f40aa144bbf38ceb3cc2a05bed00759c87a65bd798cf8bb289d07a" 17 17 else throw "Spideroak client for: ${stdenv.system} not supported!"; 18 18 19 19 ldpath = stdenv.lib.makeSearchPath "lib" [ 20 - glib fontconfig libXext libX11 freetype libXrender 20 + glib fontconfig libXext libX11 freetype libXrender 21 21 ]; 22 22 23 - version = "5.1.6"; 23 + version = "6.0.1"; 24 24 25 25 in stdenv.mkDerivation { 26 26 name = "spideroak-${version}"; 27 - 27 + 28 28 src = fetchurl { 29 29 name = "spideroak-${version}-${arch}"; 30 30 url = "https://spideroak.com/getbuild?platform=slackware&arch=${arch}&version=${version}"; ··· 36 36 unpackCmd = "tar -xzf $curSrc"; 37 37 38 38 installPhase = '' 39 - ensureDir "$out" 39 + mkdir "$out" 40 40 cp -r "./"* "$out" 41 - ensureDir "$out/bin" 42 - rm "$out/usr/bin/SpiderOak" 41 + mkdir "$out/bin" 42 + rm "$out/usr/bin/SpiderOakONE" 43 43 44 44 patchelf --set-interpreter ${stdenv.glibc}/lib/${interpreter} \ 45 - "$out/opt/SpiderOak/lib/SpiderOak" 45 + "$out/opt/SpiderOakONE/lib/SpiderOakONE" 46 46 47 - RPATH=$out/opt/SpiderOak/lib:${ldpath} 48 - makeWrapper $out/opt/SpiderOak/lib/SpiderOak $out/bin/spideroak --set LD_LIBRARY_PATH $RPATH \ 49 - --set QT_PLUGIN_PATH $out/opt/SpiderOak/lib/plugins/ \ 47 + RPATH=$out/opt/SpiderOakONE/lib:${ldpath} 48 + makeWrapper $out/opt/SpiderOakONE/lib/SpiderOakONE $out/bin/spideroak --set LD_LIBRARY_PATH $RPATH \ 49 + --set QT_PLUGIN_PATH $out/opt/SpiderOakONE/lib/plugins/ \ 50 50 --set SpiderOak_EXEC_SCRIPT $out/bin/spideroak 51 51 ''; 52 52