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: b8bf4e406be5
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: 48c875615787
Choose a head ref

Commits on Jun 1, 2019

  1. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    25a89d0 View commit details

Commits on Jun 2, 2019

  1. teeworlds: fetchSubmodules

    The languages and maps directories are submodules, and are not included
    in tarballs downloaded from GitHub. This results in an English-only game
    that can't run a server.
    alyssais committed Jun 2, 2019
    Copy the full SHA
    356938c View commit details

Commits on Jun 4, 2019

  1. Copy the full SHA
    52208c3 View commit details

Commits on Jun 8, 2019

  1. doc: update nixpkgs-mozilla rev

    The previous one didn't work, returning a TOML parse error.
    asymmetric committed Jun 8, 2019
    Copy the full SHA
    4356b98 View commit details
  2. bind: fix build on armv6l

    lopsided98 committed Jun 8, 2019
    Copy the full SHA
    b473f17 View commit details

Commits on Jun 9, 2019

  1. Merge pull request #61858 from cf6b88f/freerdp-nocaps

    freerdp: add nocaps option that turns Caps Lock into Control
    peterhoeg authored Jun 9, 2019
    Copy the full SHA
    4d2bd93 View commit details
  2. bind: drop a darwin-specific patch (#62882)

    The patch didn't apply since 9.12 -> 9.14 (26026c3).
    I'll hope it's not needed anymore (and let Borg verify that).
    It was reportedly just a configure-time error: e460267.
    vcunat committed Jun 9, 2019
    Copy the full SHA
    c5c3661 View commit details
  3. Copy the full SHA
    a1bb64e View commit details
  4. Copy the full SHA
    17c0a1f View commit details
  5. mtprotoproxy: init at 1.0.5

    abbradar committed Jun 9, 2019
    Copy the full SHA
    2a69ddb View commit details
  6. mtprotoproxy service: init

    abbradar committed Jun 9, 2019
    Copy the full SHA
    05c1add View commit details
  7. Copy the full SHA
    dd589ad View commit details
  8. Merge pull request #62885 from abbradar/mtproxy

    mtprotoproxy: init package and service
    abbradar authored Jun 9, 2019
    Copy the full SHA
    1d7d5d9 View commit details
  9. hyperfine: 1.4.0 -> 1.6.0 (#62883)

    dywedir authored and aristidb committed Jun 9, 2019
    Copy the full SHA
    bc14332 View commit details
  10. Copy the full SHA
    f1c31bd View commit details
  11. nixos/jack: option to adjust dmix buffering (#62854)

    gnidorah authored and aristidb committed Jun 9, 2019
    Copy the full SHA
    fe01afa View commit details
  12. Copy the full SHA
    74e40dc View commit details
  13. modidy-iris: 3.37.1 -> 3.38.0 (#62884)

    Tomahna authored and aristidb committed Jun 9, 2019
    Copy the full SHA
    08fb316 View commit details
  14. nixos/wireguard: add peer service to interface dependencies (#62828)

    Previously each oneshot peer service only ran once and was not
    restarted together with the interface unit. Because of this,
    defined peers were missing after restarting their corresponding
    interface unit.
    
    Co-Authored-By: Franz Pletz <fpletz@fnordicwalking.de>
    2 people authored and aristidb committed Jun 9, 2019
    Copy the full SHA
    f491e94 View commit details
  15. Copy the full SHA
    72216e1 View commit details
  16. pythonPackages.neuron: fix for darwin

    un-compensate for some of the darwin quirks the neuron
    source is expecting
    risicle authored and FRidh committed Jun 9, 2019
    Copy the full SHA
    e0aec55 View commit details
  17. Copy the full SHA
    48c8756 View commit details
6 changes: 3 additions & 3 deletions doc/languages-frameworks/rust.section.md
Original file line number Diff line number Diff line change
@@ -336,9 +336,9 @@ with import <nixpkgs> {};
let src = fetchFromGitHub {
owner = "mozilla";
repo = "nixpkgs-mozilla";
# commit from: 2018-03-27
rev = "2945b0b6b2fd19e7d23bac695afd65e320efcebe";
sha256 = "034m1dryrzh2lmjvk3c0krgip652dql46w5yfwpvh7gavd3iypyw";
# commit from: 2019-05-15
rev = "9f35c4b09fd44a77227e79ff0c1b4b6a69dff533";
sha256 = "18h0nvh55b5an4gmlgfbvwbyqj91bklf1zymis6lbdh75571qaz0";
};
in
with import "${src.out}/rust-overlay.nix" pkgs pkgs;
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -610,6 +610,7 @@
./services/networking/morty.nix
./services/networking/miredo.nix
./services/networking/mstpd.nix
./services/networking/mtprotoproxy.nix
./services/networking/murmur.nix
./services/networking/mxisd.nix
./services/networking/namecoind.nix
15 changes: 15 additions & 0 deletions nixos/modules/services/audio/jack.nix
Original file line number Diff line number Diff line change
@@ -98,6 +98,20 @@ in {
'';
};

dmixConfig = mkOption {
type = types.lines;
default = "";
example = ''
period_size 2048
periods 2
'';
description = ''
For music production software that still doesn't support JACK natively you
would like to put buffer/period adjustments here
to decrease dmix device latency.
'';
};

session = mkOption {
type = types.lines;
description = ''
@@ -150,6 +164,7 @@ in {
ipc_key 219345
slave {
pcm loophw00
${cfg.loopback.dmixConfig}
}
}
pcm.asoftvol {
110 changes: 110 additions & 0 deletions nixos/modules/services/networking/mtprotoproxy.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{ config, lib, pkgs, ... }:

with lib;

let

cfg = config.services.mtprotoproxy;

configOpts = {
PORT = cfg.port;
USERS = cfg.users;
SECURE_ONLY = cfg.secureOnly;
} // lib.optionalAttrs (cfg.adTag != null) { AD_TAG = cfg.adTag; }
// cfg.extraConfig;

convertOption = opt:
if isString opt || isInt opt then
builtins.toJSON opt
else if isBool opt then
if opt then "True" else "False"
else if isList opt then
"[" + concatMapStringsSep "," convertOption opt + "]"
else if isAttrs opt then
"{" + concatStringsSep "," (mapAttrsToList (name: opt: "${builtins.toJSON name}: ${convertOption opt}") opt) + "}"
else
throw "Invalid option type";

configFile = pkgs.writeText "config.py" (concatStringsSep "\n" (mapAttrsToList (name: opt: "${name} = ${convertOption opt}") configOpts));

in

{

###### interface

options = {

services.mtprotoproxy = {

enable = mkEnableOption "mtprotoproxy";

port = mkOption {
type = types.int;
default = 3256;
description = ''
TCP port to accept mtproto connections on.
'';
};

users = mkOption {
type = types.attrsOf types.str;
example = {
"tg" = "00000000000000000000000000000000";
"tg2" = "0123456789abcdef0123456789abcdef";
};
description = ''
Allowed users and their secrets. A secret is a 32 characters long hex string.
'';
};

secureOnly = mkOption {
type = types.bool;
default = true;
description = ''
Don't allow users to connect in non-secure mode (without random padding).
'';
};

adTag = mkOption {
type = types.nullOr types.str;
default = null;
# Taken from mtproxyproto's repo.
example = "3c09c680b76ee91a4c25ad51f742267d";
description = ''
Tag for advertising that can be obtained from @MTProxybot.
'';
};

extraConfig = mkOption {
type = types.attrs;
default = {};
example = {
"STATS_PRINT_PERIOD" = 600;
};
description = ''
Extra configuration options for mtprotoproxy.
'';
};

};

};


###### implementation

config = mkIf cfg.enable {

systemd.services.mtprotoproxy = {
description = "MTProto Proxy Daemon";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.mtprotoproxy}/bin/mtprotoproxy ${configFile}";
DynamicUser = true;
};
};

};

}
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/wireguard.nix
Original file line number Diff line number Diff line change
@@ -244,7 +244,7 @@ let
description = "WireGuard Peer - ${interfaceName} - ${peer.publicKey}";
requires = [ "wireguard-${interfaceName}.service" ];
after = [ "wireguard-${interfaceName}.service" ];
wantedBy = [ "multi-user.target" ];
wantedBy = [ "multi-user.target" "wireguard-${interfaceName}.service" ];
environment.DEVICE = interfaceName;
environment.WG_ENDPOINT_RESOLUTION_RETRIES = "infinity";
path = with pkgs; [ iproute wireguard-tools ];
4 changes: 2 additions & 2 deletions pkgs/applications/audio/mopidy/iris.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

pythonPackages.buildPythonApplication rec {
pname = "Mopidy-Iris";
version = "3.37.1";
version = "3.38.0";

src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "0qcg456k7av0anymmmnlcn0v4642gbgk0nhic6w9bg9v5m0nj9ll";
sha256 = "0w86g037jdihh6a16x7y82qk8yk30frkj23k9axcj9fjyp30r0x5";
};

propagatedBuildInputs = [
4 changes: 2 additions & 2 deletions pkgs/applications/misc/kitty/default.nix
Original file line number Diff line number Diff line change
@@ -21,14 +21,14 @@
with python3Packages;
buildPythonApplication rec {
pname = "kitty";
version = "0.14.1";
version = "0.14.2";
format = "other";

src = fetchFromGitHub {
owner = "kovidgoyal";
repo = "kitty";
rev = "v${version}";
sha256 = "0nm8l8ki0csdapf5mj3vg605ki5hjsx7h7i3m01x1a4vjzjmk8bv";
sha256 = "15iv3k7iryf10n8n67d37x24pzcarq97a3dr42lbld00k1lx19az";
};

buildInputs = [
4 changes: 4 additions & 0 deletions pkgs/applications/networking/remote/freerdp/default.nix
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
, pcsclite ? null
, systemd ? null
, buildServer ? true
, nocaps ? false
}:

stdenv.mkDerivation rec {
@@ -31,6 +32,9 @@ stdenv.mkDerivation rec {
'' + lib.optionalString (pcsclite != null) ''
substituteInPlace "winpr/libwinpr/smartcard/smartcard_pcsc.c" \
--replace "libpcsclite.so" "${stdenv.lib.getLib pcsclite}/lib/libpcsclite.so"
'' + lib.optionalString nocaps ''
substituteInPlace "libfreerdp/locale/keyboard_xkbfile.c" \
--replace "RDP_SCANCODE_CAPSLOCK" "RDP_SCANCODE_LCONTROL"
'';

buildInputs = with lib; [
9 changes: 8 additions & 1 deletion pkgs/applications/science/biology/neuron/default.nix
Original file line number Diff line number Diff line change
@@ -33,6 +33,12 @@ stdenv.mkDerivation rec {
--replace 'float abs(float arg);' "" \
--replace 'short abs(short arg);' "" \
--replace 'long abs(long arg);' ""
'' + stdenv.lib.optionalString stdenv.isDarwin ''
# we are darwin, but we don't have all the quirks the source wants to compensate for
substituteInPlace src/nrnpython/setup.py.in --replace 'readline="edit"' 'readline="readline"'
for f in src/nrnpython/*.[ch] ; do
substituteInPlace $f --replace "<Python/Python.h>" "<Python.h>"
done
'';

enableParallelBuilding = true;
@@ -74,7 +80,8 @@ stdenv.mkDerivation rec {
license = licenses.bsd3;
homepage = http://www.neuron.yale.edu/neuron;
maintainers = [ maintainers.adev ];
platforms = platforms.all;
# source claims it's only tested for x86 and powerpc
platforms = platforms.x86_64 ++ platforms.i686;
};
}

4 changes: 2 additions & 2 deletions pkgs/applications/virtualization/virtualbox/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ config, stdenv, fetchurl, lib, iasl, dev86, pam, libxslt, libxml2
, libX11, xorgproto, libXext, libXcursor, libXmu, qt5, libIDL, SDL, libcap
, libX11, xorgproto, libXext, libXcursor, libXmu, qt5, libIDL, SDL, libcap, libGL
, libpng, glib, lvm2, libXrandr, libXinerama, libopus
, pkgconfig, which, docbook_xsl, docbook_xml_dtd_43
, alsaLib, curl, libvpx, nettools, dbus
@@ -42,7 +42,7 @@ in stdenv.mkDerivation {
++ optional javaBindings jdk
++ optional pythonBindings python # Python is needed even when not building bindings
++ optional pulseSupport libpulseaudio
++ optionals (headless) [ libXrandr ]
++ optionals (headless) [ libXrandr libGL ]
++ optionals (!headless) [ qt5.qtbase qt5.qtx11extras libXinerama SDL ];

hardeningDisable = [ "format" "fortify" "pic" "stackprotector" ];
19 changes: 2 additions & 17 deletions pkgs/development/libraries/editline/default.nix
Original file line number Diff line number Diff line change
@@ -2,29 +2,14 @@

stdenv.mkDerivation rec {
name = "editline-${version}";
version = "1.16.0";
version = "1.16.1";
src = fetchFromGitHub {
owner = "troglobit";
repo = "editline";
rev = version;
sha256 = "0a751dp34mk9hwv59ss447csknpm5i5cgd607m3fqf24rszyhbf2";
sha256 = "192valxbvkxh47dszrnahv7xiccarjw9y84g4zaw5y0lxfc54dir";
};

patches = [
# will be in 1.17.0
(fetchpatch {
name = "redisplay-clear-screen.patch";
url = "https://github.com/troglobit/editline/commit/a4b67d226829a55bc8501f36708d5e104a52fbe4.patch";
sha256 = "0dbgdqxa4x9wgr9kx89ql74np4qq6fzdbph9j9c65ns3gnaanjkw";
})
# PR24
(fetchpatch {
name = "fix-narrow-term-crash.patch";
url = https://github.com/troglobit/editline/pull/24/commits/8660aef4b795fbd46a86dca804f067a81757c5df.patch;
sha256 = "0pcz1f141qv78xbq09yh0zfcjiqyavr66snz1hvxzvi8x0vixc4i";
})
];

nativeBuildInputs = [ autoreconfHook ];

outputs = [ "out" "dev" "man" "doc" ];
3 changes: 2 additions & 1 deletion pkgs/games/teeworlds/default.nix
Original file line number Diff line number Diff line change
@@ -10,7 +10,8 @@ stdenv.mkDerivation rec {
owner = "teeworlds";
repo = "teeworlds";
rev = version;
sha256 = "05qj6gdw167pan1gwq82ffz03nmlhhzrv1sslpfm8w81nq4b5c72";
sha256 = "1hfj22xxswqnm1s74ln3dwl63rs4mk9g4yvpf75plswbxd0020la";
fetchSubmodules = true;
};

postPatch = ''
26 changes: 0 additions & 26 deletions pkgs/servers/dns/bind/darwin-openssl-linking-fix.patch

This file was deleted.

8 changes: 7 additions & 1 deletion pkgs/servers/dns/bind/default.nix
Original file line number Diff line number Diff line change
@@ -23,7 +23,13 @@ stdenv.mkDerivation rec {
patches = [
./dont-keep-configure-flags.patch
./remove-mkdir-var.patch
] ++ stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch;
# Fix build on armv6l
(fetchpatch {
url = "https://gitlab.isc.org/isc-projects/bind9/commit/f546769b8b1077a0ebfe270b8a283469ea3158d0.patch";
sha256 = "060f35lj6rr2qg7sy9pwy3946q2bsps4m9knmw15x6n6nmzvxrcv";
excludes = [ "CHANGES" ];
})
];

nativeBuildInputs = [ perl ];
buildInputs = [ libtool libxml2 openssl ]
29 changes: 29 additions & 0 deletions pkgs/servers/mtprotoproxy/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ stdenv, fetchFromGitHub, python, pyaes, pycrypto, wrapPython }:

stdenv.mkDerivation rec {
pname = "mtprotoproxy";
version = "1.0.5";

src = fetchFromGitHub {
owner = "alexbers";
repo = "mtprotoproxy";
rev = "v${version}";
sha256 = "11jaz01cagmqadyxkks7dx41ggg6pp2l1ia9npqyrl2xhcxm5b0x";
};

nativeBuildInputs = [ wrapPython ];
pythonPath = [ pyaes pycrypto ];

installPhase = ''
install -Dm755 mtprotoproxy.py $out/bin/mtprotoproxy
wrapPythonPrograms
'';

meta = with stdenv.lib; {
description = "Async MTProto proxy for Telegram";
license = licenses.mit;
homepage = https://github.com/alexbers/mtprotoproxy;
platforms = python.meta.platforms;
maintainers = with maintainers; [ abbradar ];
};
}
10 changes: 5 additions & 5 deletions pkgs/tools/misc/hyperfine/default.nix
Original file line number Diff line number Diff line change
@@ -3,17 +3,17 @@
}:

rustPlatform.buildRustPackage rec {
name = "hyperfine-${version}";
version = "1.4.0";
pname = "hyperfine";
version = "1.6.0";

src = fetchFromGitHub {
owner = "sharkdp";
repo = "hyperfine";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "1mn5nv3zljj2wz40imf62gknv84f7igslsf59gg1qvhgvgsd98sp";
sha256 = "0rwmigdnw2zgixzmif3wzw1adlyyk71jzvjfccqmgz840jkpvmcy";
};

cargoSha256 = "138m29nl65rg3gx2wkx0jj7p8i2csh9kq03v4arp3mnbglp4802y";
cargoSha256 = "1j9ngbabg6vchgpiaqsbcvsm86syx2nbckzf9a4b29m69jv4pp1y";

buildInputs = stdenv.lib.optional stdenv.isDarwin Security;

Loading