Merge pull request #32398 from volth/patch-78

electron: 1.7.5 -> 1.8.1

authored by

Jörg Thalheim and committed by
GitHub
9874d1b5 2b91fc0c

+30 -13
+30 -13
pkgs/development/tools/electron/default.nix
··· 1 { stdenv, lib, libXScrnSaver, makeWrapper, fetchurl, unzip, atomEnv }: 2 3 let 4 - version = "1.7.5"; 5 name = "electron-${version}"; 6 7 meta = with stdenv.lib; { ··· 9 homepage = https://github.com/electron/electron; 10 license = licenses.mit; 11 maintainers = [ maintainers.travisbhartwell ]; 12 - platforms = [ "x86_64-darwin" "x86_64-linux" ]; 13 }; 14 15 linux = { 16 inherit name version meta; 17 18 - src = fetchurl { 19 - url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-x64.zip"; 20 - sha256 = "1z1dzk6d2mfyms8lj8g6jn76m52izbd1d7c05k8h88m1syfsgav5"; 21 - name = "${name}.zip"; 22 - }; 23 24 buildInputs = [ unzip makeWrapper ]; 25 ··· 45 46 src = fetchurl { 47 url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-darwin-x64.zip"; 48 - sha256 = "1d3c3y5j99wbyxlzk1nkry0m1xgxy3mi4a6irvlgyxl729dnwi97"; 49 name = "${name}.zip"; 50 }; 51 52 buildInputs = [ unzip ]; 53 54 buildCommand = '' 55 - mkdir -p $out/Applications 56 - unzip $src 57 - mv Electron.app $out/Applications 58 - mkdir -p $out/bin 59 - ln -s $out/Applications/Electron.app/Contents/MacOs/Electron $out/bin/electron 60 ''; 61 }; 62 in
··· 1 { stdenv, lib, libXScrnSaver, makeWrapper, fetchurl, unzip, atomEnv }: 2 3 let 4 + version = "1.8.1"; 5 name = "electron-${version}"; 6 7 meta = with stdenv.lib; { ··· 9 homepage = https://github.com/electron/electron; 10 license = licenses.mit; 11 maintainers = [ maintainers.travisbhartwell ]; 12 + platforms = [ "x86_64-darwin" "x86_64-linux" "i686-linux" "armv7l-linux" "aarch64-linux" ]; 13 }; 14 15 linux = { 16 inherit name version meta; 17 18 + src = { 19 + i686-linux = fetchurl { 20 + url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-ia32.zip"; 21 + sha256 = "0djqlcs4m9n9354idaqcs4cwskq2m3sf9mzvxpp4wy0a93pk78bw"; 22 + name = "${name}.zip"; 23 + }; 24 + x86_64-linux = fetchurl { 25 + url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-x64.zip"; 26 + sha256 = "0as7bgs050wsc9ywzr7f4i2c9dp1ynddcmiblm2b0hdcvw61k9q2"; 27 + name = "${name}.zip"; 28 + }; 29 + armv7l-linux = fetchurl { 30 + url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-armv7l.zip"; 31 + sha256 = "19x9c12kdr3rj39x4kshv3zi132dpnki7vaqrhadsn23q85n56ig"; 32 + name = "${name}.zip"; 33 + }; 34 + aarch64-linux = fetchurl { 35 + url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-arm64.zip"; 36 + sha256 = "12w1ajj94rqwh4906dzswh3vhs3micn80jvd015qxwss3n4n1lsz"; 37 + name = "${name}.zip"; 38 + }; 39 + }.${stdenv.system}; 40 41 buildInputs = [ unzip makeWrapper ]; 42 ··· 62 63 src = fetchurl { 64 url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-darwin-x64.zip"; 65 + sha256 = "0r0zbiqblwkcrljkljkj7zvfwr078bfgd38lhb1ivbj73fri17ir"; 66 name = "${name}.zip"; 67 }; 68 69 buildInputs = [ unzip ]; 70 71 buildCommand = '' 72 + mkdir -p $out/Applications 73 + unzip $src 74 + mv Electron.app $out/Applications 75 + mkdir -p $out/bin 76 + ln -s $out/Applications/Electron.app/Contents/MacOs/Electron $out/bin/electron 77 ''; 78 }; 79 in