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: db50ff636745
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: ed136f84efd3
Choose a head ref

Commits on May 27, 2019

  1. nixos: add test for uwsgi

    LnL7 committed May 27, 2019
    Copy the full SHA
    8ce93e2 View commit details

Commits on Jun 3, 2019

  1. Copy the full SHA
    347bf16 View commit details

Commits on Jun 4, 2019

  1. iperf2: make binary symlink & prioritize iperf3

    If both are in the environment, iperf3 should be used as `bin/iperf`
    by default, for more consistency.
    Profpatsch committed Jun 4, 2019
    Copy the full SHA
    ff13282 View commit details
  2. Copy the full SHA
    0fc454c View commit details

Commits on Jun 6, 2019

  1. libblockdev: add gptfdisk as a dependency

    This fixes #62749 (sgdisk needed for creating luks-encrypted ext4
    volumes via udisk2).
    lightbulbjim committed Jun 6, 2019
    Copy the full SHA
    c0f8a9f View commit details
  2. nixos/tests/docker-tools: check layer sharing with buildLayeredImage

    Adapted from grahamc's blog post on layered Docker images in Nix:
    
    https://grahamc.com/blog/nix-and-layered-docker-images
    danieldk committed Jun 6, 2019
    Copy the full SHA
    3b0d5b5 View commit details

Commits on Jun 7, 2019

  1. tor-browser-bundle: 8.5 -> 8.5.1, security fix!

    I think the source variant needs special handling, sorry.
    dtzWill committed Jun 7, 2019
    Copy the full SHA
    88dc069 View commit details
  2. aerc: init at 0.1.0

    Co-authored-by: Tadeo Kondrak <me@tadeo.ca>
    Mic92 and tadeokondrak committed Jun 7, 2019
    Copy the full SHA
    6abbf8e View commit details
  3. chunkwm: init at 0.4.9

    LnL7 committed Jun 7, 2019
    Copy the full SHA
    6b363b3 View commit details

Commits on Jun 8, 2019

  1. Copy the full SHA
    9efd9de View commit details
  2. Merge pull request #62830 from tadeokondrak/aerc

    aerc: init at 0.1.0
    kalbasit authored Jun 8, 2019
    Copy the full SHA
    100f0b0 View commit details
  3. Merge pull request #62757 from lightbulbjim/libblockdev-sgdisk

    libblockdev: add gptfdisk as a dependency
    worldofpeace authored Jun 8, 2019
    Copy the full SHA
    059ce69 View commit details
  4. Merge pull request #62846 from dtzWill/update/youtube-dl-2019.06.08

    youtube-dl: 2019.05.20 -> 2019.06.08
    worldofpeace authored Jun 8, 2019
    Copy the full SHA
    bfa0e43 View commit details
  5. Merge pull request #62773 from danieldk/docker-shared-layer-test

    nixos/tests/docker-tools: check layer sharing with buildLayeredImage
    nlewo authored Jun 8, 2019
    Copy the full SHA
    0e28092 View commit details
  6. Merge pull request #62803 from dtzWill/update/tor-browser-bundle-8.5.1

    tor-browser-bundle: 8.5 -> 8.5.1, security fix!
    joachifm authored Jun 8, 2019
    Copy the full SHA
    497872c View commit details
  7. Merge pull request #62610 from Profpatsch/iperf3-symlink-manpage

    iperf3: symlink manpage to iperf & split man output
    fpletz authored Jun 8, 2019
    Copy the full SHA
    3b58c72 View commit details
  8. Copy the full SHA
    643de9b View commit details
  9. Merge pull request #62683 from dtzWill/update/tgt-1.0.78

    tgt: 1.0.77 -> 1.0.78, touchup
    fpletz authored Jun 8, 2019
    Copy the full SHA
    8ec6df1 View commit details
  10. Merge pull request #62133 from LnL7/nixos-uwsgi

    nixos: add test for uwsgi
    LnL7 authored Jun 8, 2019
    Copy the full SHA
    9b52ff5 View commit details
  11. Merge pull request #61376 from LnL7/chunkwm

    chunkwm: init at 0.4.9
    LnL7 authored Jun 8, 2019
    Copy the full SHA
    c969ca3 View commit details
  12. Copy the full SHA
    5f968a7 View commit details
  13. aizeroconf: init at 0.1.8

    obadz committed Jun 8, 2019
    Copy the full SHA
    ed136f8 View commit details
1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
@@ -248,6 +248,7 @@ in
transmission = handleTest ./transmission.nix {};
udisks2 = handleTest ./udisks2.nix {};
upnp = handleTest ./upnp.nix {};
uwsgi = handleTest ./uwsgi.nix {};
vault = handleTest ./vault.nix {};
virtualbox = handleTestOn ["x86_64-linux"] ./virtualbox.nix {};
wireguard = handleTest ./wireguard {};
6 changes: 6 additions & 0 deletions nixos/tests/docker-tools.nix
Original file line number Diff line number Diff line change
@@ -68,6 +68,12 @@ import ./make-test.nix ({ pkgs, ... }: {
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.layered-on-top}'");
$docker->succeed("docker run --rm ${pkgs.dockerTools.examples.layered-on-top.imageName}");
# Ensure layers are shared between images
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.another-layered-image}'");
$docker->succeed("docker inspect ${pkgs.dockerTools.examples.layered-image.imageName} | ${pkgs.jq}/bin/jq -r '.[] | .RootFS.Layers | .[]' | sort > layers1.sha256");
$docker->succeed("docker inspect ${pkgs.dockerTools.examples.another-layered-image.imageName} | ${pkgs.jq}/bin/jq -r '.[] | .RootFS.Layers | .[]' | sort > layers2.sha256");
$docker->succeed('[ $(comm -1 -2 layers1.sha256 layers2.sha256 | wc -l) -ne 0 ]');
# 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");
38 changes: 38 additions & 0 deletions nixos/tests/uwsgi.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import ./make-test.nix ({ pkgs, ... }:
{
name = "uwsgi";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ lnl7 ];
};
machine = { pkgs, ... }: {
services.uwsgi.enable = true;
services.uwsgi.plugins = [ "python3" ];
services.uwsgi.instance = {
type = "emperor";
vassals.hello = {
type = "normal";
master = true;
workers = 2;
http = ":8000";
module = "wsgi:application";
chdir = pkgs.writeTextDir "wsgi.py" ''
from flask import Flask
application = Flask(__name__)
@application.route("/")
def hello():
return "Hello World!"
'';
pythonPackages = self: with self; [ flask ];
};
};
};

testScript =
''
$machine->waitForUnit('multi-user.target');
$machine->waitForUnit('uwsgi.service');
$machine->waitForOpenPort(8000);
$machine->succeed('curl -v 127.0.0.1:8000 | grep "Hello World!"');
'';
})
2 changes: 1 addition & 1 deletion pkgs/applications/networking/browsers/firefox/packages.nix
Original file line number Diff line number Diff line change
@@ -246,7 +246,7 @@ in rec {

tor-browser-8-5 = tbcommon rec {
ffversion = "60.7.0esr";
tbversion = "8.5.0";
tbversion = "8.5.0"; # TODO: update to match binary bundle (8.5.1 currently)

# FIXME: fetchFromGitHub is not ideal, unpacked source is >900Mb
src = fetchFromGitHub {
Original file line number Diff line number Diff line change
@@ -89,7 +89,7 @@ let
fteLibPath = makeLibraryPath [ stdenv.cc.cc gmp ];

# Upstream source
version = "8.5";
version = "8.5.1";

lang = "en-US";

@@ -99,15 +99,15 @@ let
"https://github.com/TheTorProject/gettorbrowser/releases/download/v${version}/tor-browser-linux64-${version}_${lang}.tar.xz"
"https://dist.torproject.org/torbrowser/${version}/tor-browser-linux64-${version}_${lang}.tar.xz"
];
sha256 = "09ixdq4n41cf5f3agmam3n669fflz6vwpalxpai07p2alal80g2x";
sha256 = "1mi587rh63ylhww0l8rr58qwbh9h7sk0c666mf84xk5b10s77hjb";
};

"i686-linux" = fetchurl {
urls = [
"https://dist.torproject.org/torbrowser/${version}/tor-browser-linux32-${version}_${lang}.tar.xz"
"https://github.com/TheTorProject/gettorbrowser/releases/download/v${version}/tor-browser-linux32-${version}_${lang}.tar.xz"
];
sha256 = "0lgxwb8hll29sk7rpnraw9gfz7f9sb81gjsbxdnmm34y1vrabjv7";
sha256 = "0lgxwb9hll29sk7rpnraw9gfz7f9sb81gjsbxdnmm34y1vrabjv7";
};
};
in
55 changes: 55 additions & 0 deletions pkgs/applications/networking/mailreaders/aerc/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{ stdenv, buildGoModule, fetchurl
, go, scdoc
, python3, perl, w3m, dante
}:

buildGoModule rec {
pname = "aerc";
version = "0.1.0";

src = fetchurl {
url = "https://git.sr.ht/~sircmpwn/aerc/archive/${version}.tar.gz";
sha256 = "0wx9l097s51ih4khk231f9fs3vw55an8l2jx3q13v7y20522wgnk";
};

nativeBuildInputs = [
go
scdoc
python3.pkgs.wrapPython
];

pythonPath = [
python3.pkgs.colorama
];

buildInputs = [ python3 perl ];

buildPhase = "
runHook preBuild
# we use make instead of go build
runHook postBuild
";

installPhase = ''
runHook preInstall
make PREFIX=$out install
wrapPythonProgramsIn $out/share/aerc/filters "$out $pythonPath"
runHook postInstall
'';

postFixup = ''
wrapProgram $out/bin/aerc --prefix PATH ":" "$out/share/aerc/filters"
wrapProgram $out/share/aerc/filters/html --prefix PATH ":" \
${stdenv.lib.makeBinPath [ w3m dante ]}
'';

modSha256 = "1h0vr01s2y0k3jjigz0h8ngjv1mhk6kw8mdisp5pr017jbhijfsi";

meta = with stdenv.lib; {
description = "aerc is an email client for your terminal";
homepage = https://aerc-mail.org/;
maintainers = with maintainers; [ tadeokondrak ];
license = licenses.mit;
platforms = platforms.unix;
};
}
8 changes: 8 additions & 0 deletions pkgs/build-support/docker/examples.nix
Original file line number Diff line number Diff line change
@@ -226,4 +226,12 @@ rec {
'';
};

# 14. Create another layered image, for comparing layers with image 10.
another-layered-image = pkgs.dockerTools.buildLayeredImage {
name = "another-layered-image";
tag = "latest";
config.Cmd = [ "${pkgs.hello}/bin/hello" ];
contents = [ pkgs.hello ];
};

}
13 changes: 10 additions & 3 deletions pkgs/development/libraries/libblockdev/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gtk-doc, libxslt, docbook_xsl
, docbook_xml_dtd_43, python3, gobject-introspection, glib, udev, kmod, parted, libyaml
{ stdenv, fetchFromGitHub, substituteAll, autoreconfHook, pkgconfig, gtk-doc, libxslt, docbook_xsl
, docbook_xml_dtd_43, python3, gobject-introspection, glib, udev, kmod, parted, gptfdisk, libyaml
, cryptsetup, lvm2, dmraid, utillinux, libbytesize, libndctl, nss, volume_key
}:

@@ -17,6 +17,13 @@ in stdenv.mkDerivation rec {

outputs = [ "out" "dev" "devdoc" ];

patches = [
(substituteAll {
src = ./fix-paths.patch;
sgdisk = "${gptfdisk}/bin/sgdisk";
})
];

postPatch = ''
patchShebangs scripts
'';
@@ -26,7 +33,7 @@ in stdenv.mkDerivation rec {
];

buildInputs = [
glib udev kmod parted cryptsetup lvm2 dmraid utillinux libbytesize libndctl nss volume_key libyaml
glib udev kmod parted gptfdisk cryptsetup lvm2 dmraid utillinux libbytesize libndctl nss volume_key libyaml
];

meta = with stdenv.lib; {
47 changes: 47 additions & 0 deletions pkgs/development/libraries/libblockdev/fix-paths.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
--- a/src/plugins/part.c
+++ b/src/plugins/part.c
@@ -146,7 +146,7 @@ static GMutex deps_check_lock;
#define DEPS_LAST 2

static const UtilDep deps[DEPS_LAST] = {
- {"sgdisk", "0.8.6", NULL, "GPT fdisk \\(sgdisk\\) version ([\\d\\.]+)"},
+ {"@sgdisk@", "0.8.6", NULL, "GPT fdisk \\(sgdisk\\) version ([\\d\\.]+)"},
{"sfdisk", NULL, NULL, NULL},
};

@@ -355,7 +355,7 @@ gboolean bd_part_create_table (const gchar *disk, BDPartTableType type, gboolean
}

static gchar* get_part_type_guid_and_gpt_flags (const gchar *device, int part_num, guint64 *flags, GError **error) {
- const gchar *args[4] = {"sgdisk", NULL, device, NULL};
+ const gchar *args[4] = {"@sgdisk@", NULL, device, NULL};
gchar *output = NULL;
gchar **lines = NULL;
gchar **line_p = NULL;
@@ -1325,7 +1325,7 @@ gboolean bd_part_resize_part (const gchar *disk, const gchar *part, guint64 size


static gboolean set_gpt_flag (const gchar *device, int part_num, BDPartFlag flag, gboolean state, GError **error) {
- const gchar *args[5] = {"sgdisk", "--attributes", NULL, device, NULL};
+ const gchar *args[5] = {"@sgdisk@", "--attributes", NULL, device, NULL};
int bit_num = 0;
gboolean success = FALSE;

@@ -1351,7 +1351,7 @@ static gboolean set_gpt_flag (const gchar *device, int part_num, BDPartFlag flag
}

static gboolean set_gpt_flags (const gchar *device, int part_num, guint64 flags, GError **error) {
- const gchar *args[5] = {"sgdisk", "--attributes", NULL, device, NULL};
+ const gchar *args[5] = {"@sgdisk@", "--attributes", NULL, device, NULL};
guint64 real_flags = 0;
gchar *mask_str = NULL;
gboolean success = FALSE;
@@ -1791,7 +1791,7 @@ gboolean bd_part_set_part_name (const gchar *disk, const gchar *part, const gcha
* Tech category: %BD_PART_TECH_GPT-%BD_PART_TECH_MODE_MODIFY_PART
*/
gboolean bd_part_set_part_type (const gchar *disk, const gchar *part, const gchar *type_guid, GError **error) {
- const gchar *args[5] = {"sgdisk", "--typecode", NULL, disk, NULL};
+ const gchar *args[5] = {"@sgdisk@", "--typecode", NULL, disk, NULL};
const gchar *part_num_str = NULL;
gboolean success = FALSE;
guint64 progress_id = 0;
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/aiozeroconf/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, netifaces
, isPy27
, python
}:

buildPythonPackage rec {
pname = "aiozeroconf";
version = "0.1.8";
disabled = isPy27;

src = fetchPypi {
inherit pname version;
sha256 = "074plydm7sd113p3k0siihwwz62d3r42q3g83vqaffp569msknqh";
};

propagatedBuildInputs = [ netifaces ];

meta = with stdenv.lib; {
description = "A pure python implementation of multicast DNS service discovery";
homepage = https://github.com/jstasiak/python-zeroconf;
license = licenses.lgpl21;
maintainers = with maintainers; [ obadz ];
};
}
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/ssdp/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pkgs
, pbr
, pytest
}:

buildPythonPackage rec {
pname = "ssdp";
version = "1.0.1";

src = fetchPypi {
inherit pname version;
sha256 = "0yhjqs9jyvwmba8fi72xfi9k8pxy11wkz4iywayrg71ka3la49bk";
};

buildInputs = [ pbr ];
checkInputs = [ pytest ];
propagatedBuildInputs = [ ];

meta = with stdenv.lib; {
homepage = https://github.com/codingjoe/ssdp;
description = "Python asyncio library for Simple Service Discovery Protocol (SSDP).";
license = licenses.mit;
};
}
36 changes: 36 additions & 0 deletions pkgs/os-specific/darwin/chunkwm/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ stdenv, fetchzip, Carbon, Cocoa, ScriptingBridge }:

stdenv.mkDerivation rec {
name = "chunkwm-${version}";
version = "0.4.9";
src = fetchzip {
url = "http://github.com/koekeishiya/chunkwm/archive/v${version}.tar.gz";
sha256 = "0w8q92q97fdvbwc3qb5w44jn4vi3m65ssdvjp5hh6b7llr17vspl";
};

buildInputs = [ Carbon Cocoa ScriptingBridge ];
outputs = [ "bin" "out" ];

buildPhase = ''
for d in . src/chunkc src/plugins/*; do
pushd $d
buildPhase
popd
done
'';

installPhase = ''
mkdir -p $bin/bin $out/bin $out/lib/chunkwm/plugins
cp src/chunkc/bin/chunkc $bin/bin/chunkc
cp bin/chunkwm $out/bin
cp plugins/*.so $out/lib/chunkwm/plugins
'';

meta = with stdenv.lib; {
description = "Tiling window manager for macOS based on plugin architecture";
homepage = https://github.com/koekeishiya/chunkwm;
platforms = platforms.darwin;
maintainers = with maintainers; [ lnl7 ];
license = licenses.mit;
};
}
1 change: 1 addition & 0 deletions pkgs/os-specific/linux/kernel/common-config.nix
Original file line number Diff line number Diff line change
@@ -100,6 +100,7 @@ let
IP_VS_PROTO_UDP = yes;
IP_VS_PROTO_ESP = yes;
IP_VS_PROTO_AH = yes;
IP_VS_IPV6 = yes;
IP_DCCP_CCID3 = no; # experimental
CLS_U32_PERF = yes;
CLS_U32_MARK = yes;
4 changes: 2 additions & 2 deletions pkgs/tools/misc/youtube-dl/default.nix
Original file line number Diff line number Diff line change
@@ -19,11 +19,11 @@ buildPythonPackage rec {
# The websites youtube-dl deals with are a very moving target. That means that
# downloads break constantly. Because of that, updates should always be backported
# to the latest stable release.
version = "2019.05.20";
version = "2019.06.08";

src = fetchurl {
url = "https://yt-dl.org/downloads/${version}/${pname}-${version}.tar.gz";
sha256 = "18xwdfvpkqrnj0kb8xj8hgwhgiqpv7x7x7zzr4x3vynb9grcv9m8";
sha256 = "0dq8k28bl48xrnzf3mpi7lwyfiq8v2f78sy6py4jbiynxh38ani7";
};

nativeBuildInputs = [ makeWrapper ];
8 changes: 8 additions & 0 deletions pkgs/tools/networking/iperf/2.nix
Original file line number Diff line number Diff line change
@@ -11,10 +11,18 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
configureFlags = [ "--enable-fastsampling" ];

postInstall = ''
mv $out/bin/iperf $out/bin/iperf2
ln -s $out/bin/iperf2 $out/bin/iperf
'';

meta = with stdenv.lib; {
homepage = https://sourceforge.net/projects/iperf/;
description = "Tool to measure IP bandwidth using UDP or TCP";
platforms = platforms.unix;
license = licenses.mit;

# prioritize iperf3
priority = 10;
};
}
5 changes: 4 additions & 1 deletion pkgs/tools/networking/iperf/3.nix
Original file line number Diff line number Diff line change
@@ -10,6 +10,8 @@ stdenv.mkDerivation rec {

buildInputs = [ openssl ];

outputs = [ "out" "man" ];

patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
(fetchpatch {
url = "https://git.alpinelinux.org/aports/plain/main/iperf3/remove-pg-flags.patch?id=99ec9e1c84e338629cf1b27b0fdc808bde4d8564";
@@ -19,7 +21,8 @@ stdenv.mkDerivation rec {
];

postInstall = ''
ln -s iperf3 $out/bin/iperf
ln -s $out/bin/iperf3 $out/bin/iperf
ln -s $man/share/man/man1/iperf3.1 $man/share/man/man1/iperf.1
'';

meta = with stdenv.lib; {
Loading