git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19551 from uralbash/vscode-1.6.1

vscode: 1.5.1 -> 1.6.1

commit86ff8be9c38feede260efaa22c8bdb2299978773 authorJörg Thalheim <joerg@higgsboson.tk> dateFri 14 Oct 2016, 19:42 (10 years ago) parent0a9fa308df9632
1 file changed+27−15
pkgs/applications/editors/vscode/default.nix+27−15
pkgs/applications/editors/vscode/default.nix+27−15
@@ -1,20 +1,21 @@
1−{ stdenv, lib, callPackage, fetchurl, unzip, atomEnv, makeDesktopItem }:
1+{ stdenv, lib, callPackage, fetchurl, unzip, atomEnv, makeDesktopItem,
2+ makeWrapper, libXScrnSaver }:
23
34let
4− version = "1.5.1";
5− rev = "07d663dc1bd848161edf4cd4ce30cce410d3d877";
5+ version = "1.6.1";
6+ rev = "9e4e44c19e393803e2b05fe2323cf4ed7e36880e";
67
7− sha256 = if stdenv.system == "i686-linux" then "1a2854snjdmfhzx6qwib4iw3qjhlmlf09dlsbbvh24zbrjphnd85"
8− else if stdenv.system == "x86_64-linux" then "0gg2ad7sp02ffv7la61hh9h4vfw8qkfladbhwlh5y4axbbrx17r7"
9− else if stdenv.system == "x86_64-darwin" then "18q4ldnmm619vv8yx6rznpznpcc19zjczmcidr34552i5qfg5xsz"
8+ sha256 = if stdenv.system == "i686-linux" then "1aks84siflpjbd2s9y1f0vvvf3nas4f50cimjf25lijxzjxrlivy"
9+ else if stdenv.system == "x86_64-linux" then "05kbi081ih64fadj4k74grkk9ca3wga6ybwgs5ld0bal4ilw1q6i"
10+ else if stdenv.system == "x86_64-darwin" then "00p2m8b0l3pkf5k74szw6kcql3j1fjnv3rwnhy24wfkg4b4ah2x9"
1011 else throw "Unsupported system: ${stdenv.system}";
1112
1213 urlBase = "https://az764295.vo.msecnd.net/stable/${rev}/";
1314
1415 urlStr = if stdenv.system == "i686-linux" then
15− urlBase + "code-stable-code_${version}-1473369468_i386.tar.gz"
16+ urlBase + "code-stable-code_${version}-1476372351_i386.tar.gz"
1617 else if stdenv.system == "x86_64-linux" then
17− urlBase + "code-stable-code_${version}-1473370243_amd64.tar.gz"
18+ urlBase + "code-stable-code_${version}-1476373175_amd64.tar.gz"
1819 else if stdenv.system == "x86_64-darwin" then
1920 urlBase + "VSCode-darwin-stable.zip"
2021 else throw "Unsupported system: ${stdenv.system}";
@@ -32,15 +33,18 @@ in
3233 name = "code";
3334 exec = "code";
3435 icon = "code";
35− comment = "Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications";
36+ comment = ''
37+ Code editor redefined and optimized for building and debugging modern
38+ web and cloud applications
39+ '';
3640 desktopName = "Visual Studio Code";
3741 genericName = "Text Editor";
3842 categories = "GNOME;GTK;Utility;TextEditor;Development;";
3943 };
4044
4145 buildInputs = if stdenv.system == "x86_64-darwin"
42− then [ unzip ]
43− else [ ];
46+ then [ unzip makeWrapper libXScrnSaver ]
47+ else [ makeWrapper libXScrnSaver ];
4448
4549 installPhase = ''
4650 mkdir -p $out/lib/vscode $out/bin
@@ -59,14 +63,22 @@ in
5963 --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
6064 --set-rpath "${atomEnv.libPath}:$out/lib/vscode" \
6165 $out/lib/vscode/code
66+
67+ wrapProgram $out/bin/code \
68+ --prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ libXScrnSaver ]}/libXss.so.1
6269 '';
6370
6471 meta = with stdenv.lib; {
65− description = "Visual Studio Code is an open source source code editor developed by Microsoft for Windows, Linux and OS X.";
72+ description = ''
73+ Open source source code editor developed by Microsoft for Windows,
74+ Linux and OS X
75+ '';
6676 longDescription = ''
67− Visual Studio Code is an open source source code editor developed by Microsoft for Windows, Linux and OS X.
68− It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring.
69− It is also customizable, so users can change the editor's theme, keyboard shortcuts, and preferences.
77+ Open source source code editor developed by Microsoft for Windows,
78+ Linux and OS X. It includes support for debugging, embedded Git
79+ control, syntax highlighting, intelligent code completion, snippets,
80+ and code refactoring. It is also customizable, so users can change the
81+ editor's theme, keyboard shortcuts, and preferences
7082 '';
7183 homepage = http://code.visualstudio.com/;
7284 downloadPage = https://code.visualstudio.com/Updates;