From d77d31b3126b87360b9214fbcf2de4f94f971368 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 6 Feb 2017 08:29:49 +0100 Subject: [PATCH] vscode: fix download url Fixes #22465. --- pkgs/applications/editors/vscode/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/vscode/default.nix b/pkgs/applications/editors/vscode/default.nix index f0f44bfe62f..d1794363975 100644 --- a/pkgs/applications/editors/vscode/default.nix +++ b/pkgs/applications/editors/vscode/default.nix @@ -3,9 +3,12 @@ let version = "1.9.0"; - rev = "38746938a4ab94f2f57d9e1309c51fd6fb37553d"; + rev = "27240e71ef390bf2d66307e677c2a333cebf75af"; channel = "stable"; + # 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 + sha256 = if stdenv.system == "i686-linux" then "05f1sk2lq2skp8fxq6q229kf89vi2sq3zz6lywq7nk81pwvp8jap" else if stdenv.system == "x86_64-linux" then "0wj17lwq8f88xvfa6wfbqm580kp0470ib2yxn15j9mv0iw7nzqry" else if stdenv.system == "x86_64-darwin" then "1k067h099j6fv820nn6h4i8ax35yvd1h8f4h5216dm66cpikv7nd"