Merge pull request #24300 from winniequinn/vscode-1.10.2
vscode: 1.10.0 -> 1.10.2
This commit is contained in:
commit
6bdf8cc015
@ -2,24 +2,24 @@
|
|||||||
makeWrapper, libXScrnSaver }:
|
makeWrapper, libXScrnSaver }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "1.10.0";
|
version = "1.10.2";
|
||||||
rev = "49129d126e2c3c5592cfc8a509d872067b69d262";
|
rev = "8076a19fdcab7e1fc1707952d652f0bb6c6db331";
|
||||||
channel = "stable";
|
channel = "stable";
|
||||||
|
|
||||||
# The revision can be obtained with the following command (see https://github.com/NixOS/nixpkgs/issues/22465):
|
# The revision can be obtained with the following command (see https://github.com/NixOS/nixpkgs/issues/22465):
|
||||||
# curl -w "%{url_effective}\n" -I -L -s -S https://vscode-update.azurewebsites.net/latest/linux-x64/stable -o /dev/null
|
# curl -w "%{url_effective}\n" -I -L -s -S https://vscode-update.azurewebsites.net/latest/linux-x64/stable -o /dev/null
|
||||||
|
|
||||||
sha256 = if stdenv.system == "i686-linux" then "14ip00ysnn6daw7ws3vgnhib18pi7r1z1szfr7s996awbq12ir3i"
|
sha256 = if stdenv.system == "i686-linux" then "1rhwrpv17c8j06qja7i58cggzka8jm9v9h27jy22z30yxjz0p241"
|
||||||
else if stdenv.system == "x86_64-linux" then "1krrshsx2pjkr4pc1d6zad664f5khdbhwaq8lpx1aagxxd921mx6"
|
else if stdenv.system == "x86_64-linux" then "1c1w7wc39a5vdap8j143ym976p9l9iwns1y28mcgjwrihdlb5wb8"
|
||||||
else if stdenv.system == "x86_64-darwin" then "1y574b4wpkk06a36clajx57ydj7a0scn2gms4070cqaf0afzy19f"
|
else if stdenv.system == "x86_64-darwin" then "1zznsn84k79lqirzv950q7caq7c88yh2gglwjc11y8k69awmlpva"
|
||||||
else throw "Unsupported system: ${stdenv.system}";
|
else throw "Unsupported system: ${stdenv.system}";
|
||||||
|
|
||||||
urlBase = "https://az764295.vo.msecnd.net/${channel}/${rev}/";
|
urlBase = "https://az764295.vo.msecnd.net/${channel}/${rev}/";
|
||||||
|
|
||||||
urlStr = if stdenv.system == "i686-linux" then
|
urlStr = if stdenv.system == "i686-linux" then
|
||||||
urlBase + "code-${channel}-code_${version}-1488384152_i386.tar.gz"
|
urlBase + "code-${channel}-code_${version}-1488982317_i386.tar.gz"
|
||||||
else if stdenv.system == "x86_64-linux" then
|
else if stdenv.system == "x86_64-linux" then
|
||||||
urlBase + "code-${channel}-code_${version}-1488387854_amd64.tar.gz"
|
urlBase + "code-${channel}-code_${version}-1488981323_amd64.tar.gz"
|
||||||
else if stdenv.system == "x86_64-darwin" then
|
else if stdenv.system == "x86_64-darwin" then
|
||||||
urlBase + "VSCode-darwin-${channel}.zip"
|
urlBase + "VSCode-darwin-${channel}.zip"
|
||||||
else throw "Unsupported system: ${stdenv.system}";
|
else throw "Unsupported system: ${stdenv.system}";
|
||||||
@ -47,7 +47,12 @@ in
|
|||||||
then [ unzip makeWrapper libXScrnSaver ]
|
then [ unzip makeWrapper libXScrnSaver ]
|
||||||
else [ makeWrapper libXScrnSaver ];
|
else [ makeWrapper libXScrnSaver ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase =
|
||||||
|
if stdenv.system == "x86_64-darwin" then ''
|
||||||
|
mkdir -p $out/lib/vscode $out/bin
|
||||||
|
cp -r ./* $out/lib/vscode
|
||||||
|
ln -s $out/lib/vscode/Contents/Resources/app/bin/code $out/bin
|
||||||
|
'' else ''
|
||||||
mkdir -p $out/lib/vscode $out/bin
|
mkdir -p $out/lib/vscode $out/bin
|
||||||
cp -r ./* $out/lib/vscode
|
cp -r ./* $out/lib/vscode
|
||||||
ln -s $out/lib/vscode/code $out/bin
|
ln -s $out/lib/vscode/code $out/bin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user