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: 727e5bce8801
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: af657b78d4ef
Choose a head ref

Commits on May 12, 2019

  1. youtube-dl: 2019.04.30 -> 2019.05.11

    (cherry picked from commit 17b3c05)
    xrelkd authored and worldofpeace committed May 12, 2019
    Copy the full SHA
    7ab08db View commit details

Commits on May 13, 2019

  1. python37Packages.aiorpcx: 0.10.4 -> 0.10.5 (#57380)

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/python3.7-aiorpcx/versions
    
    (cherry picked from commit 5b0502d)
    r-ryantm authored and joachifm committed May 13, 2019
    Copy the full SHA
    9e565d9 View commit details
  2. python3Packages.aiorpcx: 0.10.5 -> 0.17.0 (electrum dep)

    (cherry picked from commit ae98b68)
    dtzWill authored and joachifm committed May 13, 2019
    Copy the full SHA
    f1ba980 View commit details
  3. zbar: 0.10 -> 0.22

    The original upstream at http://zbar.sourceforge.net/ has not produced a
    new release or a new commit on their repository in about 7 years. Most
    distros (Debian, Gentoo, Arch, ...) have switched already to the more
    maintained fork at https://github.com/mchehab/zbar
    
    Update dependencies from qt4 to qt5, reducing "electrum" closure size in
    the process (now only depends on one Qt version).
    
    (cherry picked from commit 57ffe86)
    delroth authored and joachifm committed May 13, 2019
    Copy the full SHA
    5287da0 View commit details
  4. Copy the full SHA
    49dd634 View commit details
  5. electrum: fetch from official site, check signature (manually)

    (cherry picked from commit 9cae933)
    dtzWill authored and joachifm committed May 13, 2019
    Copy the full SHA
    265b4d3 View commit details
  6. electrum: fixup Exec lines in .desktop

    Not sure why upstream added $HOME/.local/bin to $PATH for these,
    but IMO that is for users to handle as they see fit.
    
    And it's not very nix-like :).
    
    (cherry picked from commit a879c72)
    dtzWill authored and joachifm committed May 13, 2019
    Copy the full SHA
    e1d5e30 View commit details
  7. electrum: grab tests from github, but use signed sources

    Not crazy about this solution, but seems better than
    not running tests or ignoring upstream's signatures.
    
    (cherry picked from commit 66493d7)
    dtzWill authored and joachifm committed May 13, 2019
    Copy the full SHA
    2ee408d View commit details
  8. firefoxPackages.tor-browser: 8.0.6 -> 8.0.8

    (cherry picked from commit 6ed479d)
    SLNOS authored and joachifm committed May 13, 2019
    Copy the full SHA
    8d77a34 View commit details
  9. firefoxPackages.tor-browser: carry over more configureFlags from upst…

    …ream
    
    These are taken from `tor-browser-build.git` repository.
    
    (cherry picked from commit ec4a7a0)
    SLNOS authored and joachifm committed May 13, 2019
    Copy the full SHA
    7471a5c View commit details
  10. firefoxPackages.tor-browser: 8.0.8 -> 8.0.9

    (cherry picked from commit 8b4d531)
    SLNOS authored and joachifm committed May 13, 2019
    Copy the full SHA
    5726f09 View commit details
  11. tor-browser-bundle: inherit meta

    (cherry picked from commit e975d05)
    oxij authored and joachifm committed May 13, 2019
    Copy the full SHA
    30abdb8 View commit details
  12. tor-browser-bundle-bin: 8.0.8 -> 8.0.9

    (cherry picked from commit 501c2c2)
    joachifm committed May 13, 2019
    Copy the full SHA
    3c5ddf3 View commit details
  13. tor-browser-bundle-bin: meta.homepage is a regular string

    (cherry picked from commit 7defc47)
    joachifm committed May 13, 2019
    Copy the full SHA
    c2f6e4a View commit details
  14. zfsUnstable: 0.8.0-rc4 -> 0.8.0-rc5

    Izorkin authored and Mic92 committed May 13, 2019
    Copy the full SHA
    90be340 View commit details
  15. Merge pull request #61436 from joachifm/tor-browser-release-19.03

    [Backport] Tor browser related stuff for 19.03
    joachifm authored May 13, 2019
    Copy the full SHA
    7ec6169 View commit details
  16. Merge pull request #61437 from joachifm/electrum-release-19.03

    [Backport] Electrum bumps for 19.03
    joachifm authored May 13, 2019
    Copy the full SHA
    d64a36a View commit details
  17. nixos/tests/docker-tools: verify order of layers in stacked images

    (cherry picked from commit 5ef1223)
    nlewo committed May 13, 2019
    Copy the full SHA
    bf8a0be View commit details
  18. dockerTools: Fix the layer order

    The layer order was not correct when a parent image was used: parent
    image layers were above the new created layer.
    
    This commits simplifies the code related to layer ordering. In
    particular, layers in `layer-list` are ordered from bottom-most to
    top-most. This is also the order of layers in the `rootfs.diff_ids`
    attribute of the image configuration.
    
    (cherry picked from commit a5a5820)
    nlewo committed May 13, 2019
    Copy the full SHA
    39d3dd4 View commit details
  19. kitty: support macOS (#56740)

    Install the `kitty` command-line utility and the `kitty.app` macOS
    application.
    
    * Prefer libicns (png2icns) over Apple's non-free iconutil.
    * Work around warnings from Apple headers by disabling -pedantic-errors
      and -Werror.
    * Work around ld not support LLVM-LTO by disabling LTO.
    * Make Kitty and glfw compile for macOS 10.11 (and macOS 10.10).
    
    (cherry picked from commit 75aa846)
    
    cc #56740
    strager authored and veprbl committed May 13, 2019
    Copy the full SHA
    620c95c View commit details
  20. kitty: apply patch on Darwin for running as symlink

    (cherry picked from commit 7da5708)
    
    cc #61369
    rvolosatovs authored and veprbl committed May 13, 2019
    Copy the full SHA
    8fd6e72 View commit details
  21. kitty: symlink the deref binary

    (cherry picked from commit 240fce7)
    
    cc #61369
    rvolosatovs authored and veprbl committed May 13, 2019
    Copy the full SHA
    af657b7 View commit details
7 changes: 7 additions & 0 deletions nixos/tests/docker-tools.nix
Original file line number Diff line number Diff line change
@@ -67,5 +67,12 @@ import ./make-test.nix ({ pkgs, ... }: {
# Ensure building an image on top of a layered Docker images work
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.layered-on-top}'");
$docker->succeed("docker run --rm ${pkgs.dockerTools.examples.layered-on-top.imageName}");
# Ensure order of layers is correct
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.layersOrder}'");
$docker->succeed("docker run --rm ${pkgs.dockerTools.examples.layersOrder.imageName} cat /tmp/layer1 | grep -q layer1");
# This is to be sure the order of layers of the parent image is preserved
$docker->succeed("docker run --rm ${pkgs.dockerTools.examples.layersOrder.imageName} cat /tmp/layer2 | grep -q layer2");
$docker->succeed("docker run --rm ${pkgs.dockerTools.examples.layersOrder.imageName} cat /tmp/layer3 | grep -q layer3");
'';
})
37 changes: 29 additions & 8 deletions pkgs/applications/misc/electrum/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{ stdenv, fetchFromGitHub, python3, python3Packages, zbar, secp256k1 }:
{ stdenv, fetchurl, fetchFromGitHub, python3, python3Packages, zbar, secp256k1 }:

let
version = "3.3.5";

qdarkstyle = python3Packages.buildPythonPackage rec {
pname = "QDarkStyle";
version = "2.5.4";
@@ -10,19 +12,35 @@ let
};
doCheck = false; # no tests
};

# Not provided in official source releases, which are what upstream signs.
tests = fetchFromGitHub {
owner = "spesmilo";
repo = "electrum";
rev = version;
sha256 = "11rzzrv5xxqazcb7q1ig93d6cisqmd1x0jrgvfgzysbzvi51gg11";

extraPostFetch = ''
mv $out ./all
mv ./all/electrum/tests $out
'';
};
in

python3Packages.buildPythonApplication rec {
pname = "electrum";
version = "3.3.4";
inherit version;

src = fetchFromGitHub {
owner = "spesmilo";
repo = "electrum";
rev = version;
sha256 = "0yxdpc602jnd14xz3px85ka0b6db98zwbgfi9a3vj8p1k3mmiwaj";
src = fetchurl {
url = "https://download.electrum.org/${version}/Electrum-${version}.tar.gz";
sha256 = "1csj0n96zlajnrs39wsazfj5lmy7v7n77cdz56lr8nkmchh6k9z1";
};

postUnpack = ''
# can't symlink, tests get confused
cp -ar ${tests} $sourceRoot/electrum/tests
'';

propagatedBuildInputs = with python3Packages; [
aiorpcx
aiohttp
@@ -64,7 +82,10 @@ python3Packages.buildPythonApplication rec {
rm -rf $out/${python3.sitePackages}/nix
substituteInPlace $out/share/applications/electrum.desktop \
--replace "Exec=electrum %u" "Exec=$out/bin/electrum %u"
--replace 'Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum %u"' \
"Exec=$out/bin/electrum %u" \
--replace 'Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum --testnet %u"' \
"Exec=$out/bin/electrum --testnet %u"
'';

checkInputs = with python3Packages; [ pytest ];
75 changes: 69 additions & 6 deletions pkgs/applications/misc/kitty/default.nix
Original file line number Diff line number Diff line change
@@ -2,7 +2,20 @@
harfbuzz, fontconfig, pkgconfig, ncurses, imagemagick, xsel,
libstartup_notification, libX11, libXrandr, libXinerama, libXcursor,
libxkbcommon, libXi, libXext, wayland-protocols, wayland,
which, dbus
which, dbus, fetchpatch,
Cocoa,
CoreGraphics,
Foundation,
IOKit,
Kernel,
OpenGL,
cf-private,
libicns,
libpng,
librsvg,
optipng,
python3,
zlib,
}:

with python3Packages;
@@ -19,12 +32,32 @@ buildPythonApplication rec {
};

buildInputs = [
fontconfig glfw ncurses libunistring harfbuzz libX11
ncurses harfbuzz
] ++ stdenv.lib.optionals stdenv.isDarwin [
Cocoa
CoreGraphics
Foundation
IOKit
Kernel
OpenGL
cf-private
libpng
python3
zlib
] ++ stdenv.lib.optionals stdenv.isLinux [
fontconfig glfw libunistring libX11
libXrandr libXinerama libXcursor libxkbcommon libXi libXext
wayland-protocols wayland dbus
];

nativeBuildInputs = [ pkgconfig which sphinx ncurses ];
nativeBuildInputs = [
pkgconfig which sphinx ncurses
] ++ stdenv.lib.optionals stdenv.isDarwin [
imagemagick
libicns # For the png2icns tool.
librsvg
optipng
];

outputs = [ "out" "terminfo" ];

@@ -33,16 +66,41 @@ buildPythonApplication rec {
src = ./fix-paths.patch;
libstartup_notification = "${libstartup_notification}/lib/libstartup-notification-1.so";
})
] ++ stdenv.lib.optionals stdenv.isDarwin [
(fetchpatch {
name = "macos-symlink-1";
url = https://github.com/kovidgoyal/kitty/commit/bdeec612667f6976109247fe1750b10dda9c24c0.patch;
sha256 = "1d18x260w059qag80kgb2cgi2h4rricvqhwpbrw79s8yxzs7jhxk";
})
(fetchpatch {
# fixup of previous patch
name = "macos-symlink-2";
url = https://github.com/kovidgoyal/kitty/commit/af2c9a49b1ad31e94242295d88598591623fbf11.patch;
sha256 = "0k3dmgbvmh66j8k3h8dw6la6ma6f20fng6jjypy982kxvracsnl5";
})
./macos-10.11.patch
./no-lto.patch
./no-werror.patch
./png2icns.patch
];

buildPhase = ''
buildPhase = if stdenv.isDarwin then ''
make app
'' else ''
${python.interpreter} setup.py linux-package
'';

installPhase = ''
runHook preInstall
mkdir -p $out
${if stdenv.isDarwin then ''
mkdir "$out/bin"
ln -s ../Applications/kitty.app/Contents/MacOS/kitty-deref-symlink "$out/bin/kitty"
mkdir "$out/Applications"
cp -r kitty.app "$out/Applications/kitty.app"
'' else ''
cp -r linux-package/{bin,share,lib} $out
''}
wrapProgram "$out/bin/kitty" --prefix PATH : "$out/bin:${stdenv.lib.makeBinPath [ imagemagick xsel ]}"
runHook postInstall
@@ -54,8 +112,13 @@ buildPythonApplication rec {
'';

postInstall = ''
terminfo_src=${if stdenv.isDarwin then
''"$out/Applications/kitty.app/Contents/Resources/terminfo"''
else
"$out/share/terminfo"}
mkdir -p $terminfo/share
mv $out/share/terminfo $terminfo/share/terminfo
mv "$terminfo_src" $terminfo/share/terminfo
mkdir -p $out/nix-support
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
@@ -65,7 +128,7 @@ buildPythonApplication rec {
homepage = https://github.com/kovidgoyal/kitty;
description = "A modern, hackable, featureful, OpenGL based terminal emulator";
license = licenses.gpl3;
platforms = platforms.linux;
platforms = platforms.darwin ++ platforms.linux;
maintainers = with maintainers; [ tex rvolosatovs ];
};
}
116 changes: 116 additions & 0 deletions pkgs/applications/misc/kitty/macos-10.11.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
commit 749772b8b8179eb3b71e542fd9ed5621feb578f5
Author: Matthew Glazar <strager.nds@gmail.com>
Date: Thu Feb 28 22:01:32 2019 -0800

Support macOS 10.11

Allow Kitty to run on macOS 10.11 El Capitan.

diff --git a/glfw/cocoa_init.m b/glfw/cocoa_init.m
index 1e719d2e..05a680e4 100644
--- a/glfw/cocoa_init.m
+++ b/glfw/cocoa_init.m
@@ -30,6 +30,10 @@
#define NSEventMaskKeyUp NSKeyUpMask
#define NSEventMaskKeyDown NSKeyDownMask
#define NSEventModifierFlagCommand NSCommandKeyMask
+ #define NSEventModifierFlagControl NSControlKeyMask
+ #define NSEventModifierFlagDeviceIndependentFlagsMask NSDeviceIndependentModifierFlagsMask
+ #define NSEventModifierFlagShift NSShiftKeyMask
+ #define NSEventTypeApplicationDefined NSApplicationDefined
#endif

// Change to our application bundle's resources directory, if present
diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m
index 1ce79b56..fd2255fc 100644
--- a/glfw/cocoa_window.m
+++ b/glfw/cocoa_window.m
@@ -41,6 +41,7 @@
#define NSWindowStyleMaskTitled NSTitledWindowMask
#define NSEventModifierFlagCommand NSCommandKeyMask
#define NSEventModifierFlagControl NSControlKeyMask
+ #define NSEventModifierFlagNumericPad NSNumericPadKeyMask
#define NSEventModifierFlagOption NSAlternateKeyMask
#define NSEventModifierFlagShift NSShiftKeyMask
#define NSEventModifierFlagCapsLock NSAlphaShiftKeyMask
diff --git a/kitty/cocoa_window.m b/kitty/cocoa_window.m
index 5e9252ba..99eb3352 100644
--- a/kitty/cocoa_window.m
+++ b/kitty/cocoa_window.m
@@ -15,6 +15,9 @@
#include <objc/runtime.h>

#if (MAC_OS_X_VERSION_MAX_ALLOWED < 101200)
+typedef NSUInteger NSWindowStyleMask;
+#define NSWindowStyleMaskBorderless NSBorderlessWindowMask
+#define NSWindowStyleMaskFullScreen NSFullScreenWindowMask
#define NSWindowStyleMaskResizable NSResizableWindowMask
#define NSEventModifierFlagOption NSAlternateKeyMask
#define NSEventModifierFlagCommand NSCommandKeyMask
diff --git a/kitty/logging.c b/kitty/logging.c
index 45c88174..1ec9f1b0 100644
--- a/kitty/logging.c
+++ b/kitty/logging.c
@@ -5,12 +5,21 @@
* Distributed under terms of the GPL3 license.
*/

+#ifdef __APPLE__
+#include <AvailabilityMacros.h>
+#endif
+#if defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_12) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_12
+#define USE_APPLE_OS_LOG 1
+#else
+#define USE_APPLE_OS_LOG 0
+#endif
+
#include "data-types.h"
#include <stdlib.h>
#include <stdarg.h>
#include <time.h>
#include <sys/time.h>
-#ifdef __APPLE__
+#if USE_APPLE_OS_LOG
#include <os/log.h>
#endif

@@ -21,7 +30,7 @@ void
log_error(const char *fmt, ...) {
va_list ar;
struct timeval tv;
-#ifdef __APPLE__
+#if USE_APPLE_OS_LOG
// Apple does not provide a varargs style os_logv
char logbuf[16 * 1024] = {0};
#else
@@ -44,7 +53,7 @@ log_error(const char *fmt, ...) {
if (use_os_log) { bufprint(vsnprintf, fmt, ar); }
else vfprintf(stderr, fmt, ar);
va_end(ar);
-#ifdef __APPLE__
+#if USE_APPLE_OS_LOG
if (use_os_log) os_log(OS_LOG_DEFAULT, "%{public}s", logbuf);
#endif
if (!use_os_log) fprintf(stderr, "\n");
@@ -66,7 +75,7 @@ static PyMethodDef module_methods[] = {
bool
init_logging(PyObject *module) {
if (PyModule_AddFunctions(module, module_methods) != 0) return false;
-#ifdef __APPLE__
+#if USE_APPLE_OS_LOG
if (getenv("KITTY_LAUNCHED_BY_LAUNCH_SERVICES") != NULL) use_os_log = true;
#endif
return true;
diff --git a/setup.py b/setup.py
index f8643fce..55a96e73 100755
--- a/setup.py
+++ b/setup.py
@@ -711,7 +711,7 @@ Categories=System;TerminalEmulator;
CFBundlePackageType='APPL',
CFBundleSignature='????',
CFBundleExecutable=appname,
- LSMinimumSystemVersion='10.12.0',
+ LSMinimumSystemVersion='10.11.0',
LSRequiresNativeExecution=True,
NSAppleScriptEnabled=False,
# Needed for dark mode in Mojave when linking against older SDKs
12 changes: 12 additions & 0 deletions pkgs/applications/misc/kitty/no-lto.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- a/setup.py
+++ b/setup.py
@@ -223,9 +223,6 @@ def init_env(
cppflags += shlex.split(os.environ.get('CPPFLAGS', ''))
cflags += shlex.split(os.environ.get('CFLAGS', ''))
ldflags += shlex.split(os.environ.get('LDFLAGS', ''))
- if not debug and not sanitize:
- # See https://github.com/google/sanitizers/issues/647
- cflags.append('-flto'), ldflags.append('-flto')

if profile:
cppflags.append('-DWITH_PROFILER')
11 changes: 11 additions & 0 deletions pkgs/applications/misc/kitty/no-werror.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/setup.py
+++ b/setup.py
@@ -202,7 +202,7 @@ def init_env(
cflags = os.environ.get(
'OVERRIDE_CFLAGS', (
'-Wextra -Wno-missing-field-initializers -Wall -std=c11'
- ' -pedantic-errors -Werror {} {} -fwrapv {} {} -pipe {} -fvisibility=hidden'
+ ' {} {} -fwrapv {} {} -pipe {} -fvisibility=hidden'
).format(
optimize,
' '.join(sanitize_args),
19 changes: 19 additions & 0 deletions pkgs/applications/misc/kitty/png2icns.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--- a/setup.py
+++ b/setup.py
@@ -744,9 +744,15 @@ Categories=System;TerminalEmulator;
if not os.path.exists(logo_dir):
raise SystemExit('The kitty logo has not been generated, you need to run logo/make.py')
subprocess.check_call([
- 'iconutil', '-c', 'icns', logo_dir, '-o',
+ 'png2icns',
os.path.join('Resources', os.path.basename(logo_dir).partition('.')[0] + '.icns')
- ])
+ ] + [os.path.join(logo_dir, logo) for logo in (
+ 'icon_128x128.png',
+ 'icon_16x16.png',
+ 'icon_256x256.png',
+ 'icon_32x32.png',
+ 'icon_512x512.png',
+ )])
# }}}
# }}}
2 changes: 2 additions & 0 deletions pkgs/applications/networking/browsers/firefox/common.nix
Original file line number Diff line number Diff line change
@@ -251,8 +251,10 @@ stdenv.mkDerivation rec {
# and wants these
++ lib.optionals isTorBrowserLike ([
"--with-tor-browser-version=${tbversion}"
"--with-distribution-id=org.torproject"
"--enable-signmar"
"--enable-verify-mar"
"--enable-bundled-fonts"
])

++ flag alsaSupport "alsa"
10 changes: 5 additions & 5 deletions pkgs/applications/networking/browsers/firefox/packages.nix
Original file line number Diff line number Diff line change
@@ -237,16 +237,16 @@ in rec {
};

tor-browser-8-0 = tbcommon rec {
ffversion = "60.5.1esr";
tbversion = "8.0.6";
ffversion = "60.6.1esr";
tbversion = "8.0.9";

# FIXME: fetchFromGitHub is not ideal, unpacked source is >900Mb
src = fetchFromGitHub {
owner = "SLNOS";
repo = "tor-browser";
# branch "tor-browser-60.5.1esr-8.0-1-slnos"
rev = "89be91fc7cbc420b7c4a3bfc36d2b0d500dd3ccf";
sha256 = "022zjfwsdl0dkg6ck2kha4nf91xm3j9ag5n21zna98szg3x82dj1";
# branch "tor-browser-60.6.1esr-8.0-1-r2-slnos"
rev = "d311540ce07f1f4f5e5789f9107f6e6ecc23988d";
sha256 = "0nz8vxv53vnqyk3ahakrr5xg6sgapvlmsb6s1pwwsb86fxk6pm5f";
};
};

Loading