Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 836d1d7c1cce
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 70af21236d8e
Choose a head ref
  • 10 commits
  • 8 files changed
  • 5 contributors

Commits on Jan 9, 2019

  1. electron_3: init at 3.1.0

    electron 4 had many breaking changes in their API,
    breaking rambox. Since the 3.x version is still maintained,
    we can add an older variant.
    
    (cherry picked from commit 66c1f82)
    Mic92 committed Jan 9, 2019
    Copy the full SHA
    f9f584c View commit details
  2. rambox: downgrade electron to 3.x

    (cherry picked from commit fdb87a0)
    Mic92 committed Jan 9, 2019
    Copy the full SHA
    6ccdd16 View commit details
  3. electron_3: also update arm hashes

    (cherry picked from commit 60703db)
    Mic92 committed Jan 9, 2019
    Copy the full SHA
    5838574 View commit details
  4. Merge pull request #53692 from Mic92/rambox-electron

    [backport] rambox: update electron to 3.x
    Mic92 authored Jan 9, 2019
    Copy the full SHA
    23b9f34 View commit details
  5. minio: 2018-07-31T02-11-47Z -> 2018-12-06T01-27-43Z

    (cherry picked from commit d08187e)
    tilpner authored and flokli committed Jan 9, 2019
    Copy the full SHA
    ac184ee View commit details
  6. minio-client: 2018-07-31T02-28-53Z -> 2018-12-05T22-59-07Z

    (cherry picked from commit 380fce5)
    tilpner authored and flokli committed Jan 9, 2019
    Copy the full SHA
    b690ab1 View commit details
  7. minio: 2018-12-06T01-27-43Z -> 2018-12-27T18-33-08Z

    (cherry picked from commit 6c6a899)
    flokli committed Jan 9, 2019
    Copy the full SHA
    762e7c1 View commit details
  8. minio-client: 2018-12-05T22-59-07Z -> 2018-12-27T00-37-49Z

    (cherry picked from commit fd90297)
    flokli committed Jan 9, 2019
    Copy the full SHA
    3cec224 View commit details
  9. linux: 4.9.148 -> 4.9.149

    (cherry picked from commit ec3e81b)
    NeQuissimus committed Jan 9, 2019
    Copy the full SHA
    39e3248 View commit details
  10. linux: 4.14.91 -> 4.14.92

    (cherry picked from commit d55b3c9)
    NeQuissimus committed Jan 9, 2019
    Copy the full SHA
    70af212 View commit details
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, newScope, makeWrapper
, wrapGAppsHook, gnome3, glib
, electron, xdg_utils, makeDesktopItem
, electron_3, xdg_utils, makeDesktopItem
, auth0ClientID ? "0spuNKfIGeLAQ_Iki9t3fGxbfJl3k8SU"
, auth0Domain ? "nixpkgs.auth0.com" }:

@@ -43,7 +43,7 @@ stdenv.mkDerivation {
'';

postFixup = ''
makeWrapper ${electron}/bin/electron $out/bin/rambox \
makeWrapper ${electron_3}/bin/electron $out/bin/rambox \
--add-flags "${rambox-bare} --without-update" \
"''${gappsWrapperArgs[@]}" \
--prefix PATH : ${xdg_utils}/bin
77 changes: 77 additions & 0 deletions pkgs/development/tools/electron/3.x.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{ stdenv, libXScrnSaver, makeWrapper, fetchurl, unzip, atomEnv, gtk2, at-spi2-atk }:

let
version = "3.1.0";
name = "electron-${version}";

throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";

meta = with stdenv.lib; {
description = "Cross platform desktop application shell";
homepage = https://github.com/electron/electron;
license = licenses.mit;
maintainers = with maintainers; [ travisbhartwell manveru ];
platforms = [ "x86_64-darwin" "x86_64-linux" "i686-linux" "armv7l-linux" "aarch64-linux" ];
};

linux = {
inherit name version meta;
src = {
i686-linux = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-ia32.zip";
sha256 = "09llladfj8l1vnk8fl8ad66qq4czr755fhrp5ciivpbh38zi6d3d";
};
x86_64-linux = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-x64.zip";
sha256 = "0g0af1z598f8k2i5sbkzpbga49hbgzl98qgk1n4iagk08iivyfwy";
};
armv7l-linux = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-armv7l.zip";
sha256 = "04yj58v1sqnw64csazpfcchv2498ppxs2izadpnirawk09azl3bl";
};
aarch64-linux = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-arm64.zip";
sha256 = "0cjf4i24qpgkmzb4nm89kgl07bwrncpz66xs5jjvi94pmr6wx6jm";
};
}.${stdenv.hostPlatform.system} or throwSystem;

buildInputs = [ unzip makeWrapper ];

buildCommand = ''
mkdir -p $out/lib/electron $out/bin
unzip -d $out/lib/electron $src
ln -s $out/lib/electron/electron $out/bin
fixupPhase
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${atomEnv.libPath}:${gtk2}/lib:${at-spi2-atk}/lib:$out/lib/electron" \
$out/lib/electron/electron
wrapProgram $out/lib/electron/electron \
--prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ libXScrnSaver ]}/libXss.so.1
'';
};

darwin = {
inherit name version meta;

src = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-darwin-x64.zip";
sha256 = "1cd1ashrcbdjlrr6yijyh2ppk8x8jdw5cm9qnx4lzk7sj9lwjbgb";
};

buildInputs = [ unzip ];

buildCommand = ''
mkdir -p $out/Applications
unzip $src
mv Electron.app $out/Applications
mkdir -p $out/bin
ln -s $out/Applications/Electron.app/Contents/MacOs/Electron $out/bin/electron
'';
};
in

stdenv.mkDerivation (if stdenv.isDarwin then darwin else linux)
29 changes: 29 additions & 0 deletions pkgs/development/tools/electron/print-hashes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash

set -eu -o pipefail

if [[ $# -lt 1 ]]; then
echo "$0: version" >&2
exit 1
fi


VERSION=$1

declare -A SYSTEMS HASHES
SYSTEMS=(
[i686-linux]=linux-ia32
[x86_64-linux]=linux-x64
[armv7l-linux]=linux-armv7l
[aarch64-linux]=linux-arm64
[x86_64-darwin]=darwin-x64
)

for S in "${!SYSTEMS[@]}"; do
HASHES["$S"]=$(nix-prefetch-url "https://github.com/electron/electron/releases/download/v${VERSION}/electron-v${VERSION}-${SYSTEMS[$S]}.zip")
done

for S in "${!HASHES[@]}"; do
echo "$S"
echo "sha256 = \"${HASHES[$S]}\";"
done
4 changes: 2 additions & 2 deletions pkgs/os-specific/linux/kernel/linux-4.14.nix
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
with stdenv.lib;

buildLinux (args // rec {
version = "4.14.91";
version = "4.14.92";

# modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = if (modDirVersionArg == null) then concatStrings (intersperse "." (take 3 (splitString "." "${version}.0"))) else modDirVersionArg;
@@ -13,6 +13,6 @@ buildLinux (args // rec {

src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "1ad6dkvfvqabr4d1vb8li06zbc1dikd2w31b13x8x4b0865pqn3a";
sha256 = "1ba5sx66b4wlxz4ix5qm2vhla7fl01dd81xjx5nl0zm4m6miz7sz";
};
} // (args.argsOverride or {}))
4 changes: 2 additions & 2 deletions pkgs/os-specific/linux/kernel/linux-4.9.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ stdenv, buildPackages, fetchurl, perl, buildLinux, ... } @ args:

buildLinux (args // rec {
version = "4.9.148";
version = "4.9.149";
extraMeta.branch = "4.9";

src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "1559i06mcsa1d0kfnf6q1k5fldz2pbkrpg4snwddxa1508diarv0";
sha256 = "10yp6pf91h927bxnb32qd6y13m0a230d44gp70ifd6cg5ssd6nqn";
};
} // (args.argsOverride or {}))
4 changes: 2 additions & 2 deletions pkgs/servers/minio/default.nix
Original file line number Diff line number Diff line change
@@ -3,13 +3,13 @@
buildGoPackage rec {
name = "minio-${version}";

version = "2018-07-31T02-11-47Z";
version = "2018-12-27T18-33-08Z";

src = fetchFromGitHub {
owner = "minio";
repo = "minio";
rev = "RELEASE.${version}";
sha256 = "0pngr2x15prn55r8xj59sqjn9yp98hhm5qgi12ybc6cfxx0wls52";
sha256 = "076m4w6z2adl8pi9x7in8s2pa51vj4qlk3m32ibh6yhqfzpbfgd2";
};

goPackagePath = "github.com/minio/minio";
4 changes: 2 additions & 2 deletions pkgs/tools/networking/minio-client/default.nix
Original file line number Diff line number Diff line change
@@ -3,13 +3,13 @@
buildGoPackage rec {
name = "minio-client-${version}";

version = "2018-07-31T02-28-53Z";
version = "2018-12-27T00-37-49Z";

src = fetchFromGitHub {
owner = "minio";
repo = "mc";
rev = "RELEASE.${version}";
sha256 = "1918yl5d92y4ij9d1v738pf574rwb6a911rjpmaj9awhrz8qa2bg";
sha256 = "1hbw3yam5lc9414f3f8yh32ycj0wz2xc934ksvjnrhkk4xzyal6h";
};

goPackagePath = "github.com/minio/mc";
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -7994,6 +7994,8 @@ with pkgs;

electron = callPackage ../development/tools/electron { };

electron_3 = callPackage ../development/tools/electron/3.x.nix { };

autobuild = callPackage ../development/tools/misc/autobuild { };

autoconf = callPackage ../development/tools/misc/autoconf { };