Skip to content
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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ed1b0d0bac64
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 05962c4ad558
Choose a head ref

Commits on May 5, 2019

  1. [WIP] usb_modeswitch

    thefloweringash committed May 5, 2019

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    mawis Matthias Wimmer
    Copy the full SHA
    178f455 View commit details

Commits on Jan 11, 2020

  1. libretro.snes9x: 29b78d -> 04692e

    Upstream has broken git history [1], so the current version cannot be
    fetched. The required patches have been upstreamed [2], and we hope
    that upstream will be more careful with their git history.
    
    The previous commit can still be viewed on github [3], but is not the
    ancestor of any fetchable ref.
    
    [1] libretro/snes9x#199
    [2] snes9xgit/snes9x#588
    [3] libretro/snes9x@29b78df
    thefloweringash committed Jan 11, 2020
    Copy the full SHA
    03c4361 View commit details
  2. nixosTests.xandikos: init

    0x4A6F committed Jan 11, 2020
    Copy the full SHA
    78aec9c View commit details
  3. nixos/xandikos: init

    0x4A6F committed Jan 11, 2020
    Copy the full SHA
    c9ca370 View commit details
  4. python3Packages.avro-python3: init at 1.8.2

    Timma authored and Timma committed Jan 11, 2020
    Copy the full SHA
    4d95c5f View commit details
  5. maintainers: add ktrsoft

    Timma authored and Timma committed Jan 11, 2020
    Copy the full SHA
    a2a0927 View commit details

Commits on Jan 12, 2020

  1. lib/types: dont warn loaOf for home-manager namespace

    This option namespace is not a part of NixOS
    so we shouldn't provide this warning for it.
    worldofpeace committed Jan 12, 2020
    Copy the full SHA
    265da70 View commit details
  2. gitstatus: patch fewer characters

    This is a followup to #76744.
    
    The patch is still too aggressive because it captures additional local
    variables declared in the same line. It should stop when it hits
    whitespace.
    
    See romkatv/gitstatus#92.
    ryneeverett committed Jan 12, 2020
    Copy the full SHA
    be4efc8 View commit details
  3. gitstatus: patch in variable rather than regexing

    Patching in the GITSTATUS_DAEMON variable seems like a more stable
    solution than doing inline replacements.
    ryneeverett committed Jan 12, 2020
    Copy the full SHA
    f5e446b View commit details

Commits on Jan 13, 2020

  1. rx: 0.3.1 -> 0.3.2

    minijackson authored and Jon committed Jan 13, 2020
    Copy the full SHA
    865851f View commit details
  2. Merge pull request #77379 from ktrsoft/master

    python3Packages.avro-python3: init at 1.8.2
    shlevy authored Jan 13, 2020
    Copy the full SHA
    244c89d View commit details
  3. poetry2nix: 1.2.1 -> 1.3.0

    adisbladis committed Jan 13, 2020
    Copy the full SHA
    386dbd5 View commit details
  4. linux-libre.updateScript: fix COMMIT option

    Because bash was being run with -u, if COMMIT wasn't set in the
    environment the script would just crash here, rather than exiting
    successfully.
    alyssais committed Jan 13, 2020
    Copy the full SHA
    be4d80d View commit details
  5. linux-libre.updateScript: don't update if unchanged

    The revision applies to the whole SVN tree, not just the scripts
    directory, so the revision will increment sometimes with no change in
    content.
    alyssais committed Jan 13, 2020
    Copy the full SHA
    345f671 View commit details
  6. linux-libre.updateScript: fix git commit

    With nothing staged and no paths given, previously this wouldn't
    actually do anything.
    alyssais committed Jan 13, 2020
    Copy the full SHA
    1d51514 View commit details
  7. Merge pull request #77520 from thefloweringash/libretro-snes9x-src

    libretro.snes9x: 29b78d -> 04692e
    matthewbauer authored Jan 13, 2020
    Copy the full SHA
    d7627dd View commit details
  8. python3.pkgs.publicsuffix: fix build

    This patch has not been necessary since
    5425867, and has in fact broken the
    build since then.
    alyssais authored and Jon committed Jan 13, 2020
    Copy the full SHA
    2ddd038 View commit details
  9. python3.pkgs.publicsuffix: patchPhase -> postPatch

    alyssais authored and Jon committed Jan 13, 2020
    Copy the full SHA
    d184039 View commit details
  10. python3Packages.solo-python: 0.0.18 -> 0.0.21

    + fixes 74835
    wucke13 authored and Jon committed Jan 13, 2020
    Copy the full SHA
    57d0c81 View commit details
  11. maintainers: add flyfloh

    Florian authored and Jon committed Jan 13, 2020
    Copy the full SHA
    775f3e0 View commit details
  12. python-miio: init at 0.4.8

    Homeassitant uses this package to control Xiaomi Roborock vacuum
    cleaners.
    Florian authored and Jon committed Jan 13, 2020
    Copy the full SHA
    c299740 View commit details
  13. stups-pierone: init at 1.1.45

    mschuwalow authored and Jon committed Jan 13, 2020
    Copy the full SHA
    1979ac6 View commit details
  14. maintainers: add nloomans

    nloomans authored and teto committed Jan 13, 2020
    Copy the full SHA
    eec3db0 View commit details
  15. hakuneko: 1.4.2 -> 5.0.8

    HakuNeko switched to electron. Since this is the latest release the
    broken status can be dropped. The original maintainer (Ruben Astudillo)
    dropped support for the package so I decided to pick it up.
    
    I based this on the simplenote package, and implemented the setuid fix
    from the slack package.
    
    Closes #45332
    nloomans authored and teto committed Jan 13, 2020
    Copy the full SHA
    60d72d1 View commit details
  16. Copy the full SHA
    a6d5765 View commit details
  17. pavucontrol: Use system style

    Flakebi committed Jan 13, 2020
    Copy the full SHA
    475e516 View commit details
  18. waybar: Use system style

    Flakebi committed Jan 13, 2020
    Copy the full SHA
    cb89549 View commit details
  19. vimPlugins: Update

    Flakebi committed Jan 13, 2020
    Copy the full SHA
    96bfc3b View commit details
  20. Copy the full SHA
    a621204 View commit details
  21. Merge pull request #77575 from worldofpeace/home-manager-warnings-drop

    lib/types: dont warn loaOf for home-manager namespace
    worldofpeace authored Jan 13, 2020
    Copy the full SHA
    441588c View commit details
  22. Merge pull request #76178 from 0x4A6F/master-xandikos

    xandikos: add tests and module
    infinisil authored Jan 13, 2020
    Copy the full SHA
    55b0129 View commit details
  23. gitstatus: patch fewer characters (#77580)

    gitstatus: patch fewer characters
    infinisil authored Jan 13, 2020
    Copy the full SHA
    8bc64e2 View commit details
  24. vimPlugins.salt-vim: init at 2017-07-01 (#77648)

    vimPlugins.salt-vim: init at 2017-07-01
    Mic92 authored Jan 13, 2020
    Copy the full SHA
    f9c81b5 View commit details
  25. pythonPackages.onnx: init at version 1.6.0

    acairncross authored and Jon committed Jan 13, 2020
    Copy the full SHA
    74a3ff5 View commit details

Commits on Jan 14, 2020

  1. Copy the full SHA
    a8144b1 View commit details
  2. Merge pull request #77640 from anderslundstedt/master

    spotifyd: 0.2.20 -> 0.2.23
    marsam authored Jan 14, 2020
    Copy the full SHA
    1801241 View commit details
  3. linux: 5.5-rc5 -> 5.5-rc6

    NeQuissimus committed Jan 14, 2020
    Copy the full SHA
    7184df6 View commit details
  4. Merge pull request #60981 from thefloweringash/usb-modeswitch

    usb_modeswitch: fixes
    peterhoeg authored Jan 14, 2020
    Copy the full SHA
    41d333e View commit details
  5. Merge pull request #73548 from Flakebi/style

    pavucontrol, waybar: Use system style
    jtojnar authored Jan 14, 2020
    Copy the full SHA
    078f33b View commit details
  6. pencil: 3.0.4 -> 3.1.0

    Flakebi authored and bjornfor committed Jan 14, 2020
    Copy the full SHA
    2ac5fab View commit details
  7. ocamlPackages.lens: init at 1.2.3 (#77656)

    kazcw authored and vbgl committed Jan 14, 2020
    Copy the full SHA
    69aa28a View commit details
  8. swaylock-fancy: fix src

    Ma27 committed Jan 14, 2020
    Copy the full SHA
    ec2ed2d View commit details
  9. Merge master into staging-next

    FRidh committed Jan 14, 2020
    Copy the full SHA
    05962c4 View commit details
Showing with 1,229 additions and 288 deletions.
  1. +0 −12 lib/types.nix
  2. +17 −0 maintainers/maintainer-list.nix
  3. +13 −0 nixos/modules/hardware/usb-wwan.nix
  4. +1 −0 nixos/modules/module-list.nix
  5. +148 −0 nixos/modules/services/networking/xandikos.nix
  6. +1 −0 nixos/tests/all-tests.nix
  7. +70 −0 nixos/tests/xandikos.nix
  8. +3 −9 pkgs/applications/audio/pavucontrol/default.nix
  9. +3 −3 pkgs/applications/audio/spotifyd/default.nix
  10. +59 −57 pkgs/applications/graphics/pencil/default.nix
  11. +2 −2 pkgs/applications/graphics/rx/default.nix
  12. +2 −2 pkgs/applications/misc/waybar/default.nix
  13. +1 −1 pkgs/applications/version-management/git-and-tools/gitstatus/default.nix
  14. +1 −1 pkgs/applications/window-managers/sway/lock-fancy.nix
  15. +23 −0 pkgs/development/ocaml-modules/lens/default.nix
  16. +22 −0 pkgs/development/python-modules/avro-python3/default.nix
  17. +78 −0 pkgs/development/python-modules/onnx/default.nix
  18. +1 −4 pkgs/development/python-modules/publicsuffix/default.nix
  19. +39 −0 pkgs/development/python-modules/python-miio/default.nix
  20. +2 −3 pkgs/development/python-modules/solo-python/default.nix
  21. +47 −0 pkgs/development/python-modules/stups-pierone/default.nix
  22. +294 −0 pkgs/development/tools/misc/usb-modeswitch/configurable-usb-modeswitch.patch
  23. +5 −2 pkgs/development/tools/misc/usb-modeswitch/data.nix
  24. +22 −8 pkgs/development/tools/misc/usb-modeswitch/default.nix
  25. +7 −13 pkgs/development/tools/poetry2nix/poetry2nix/default.nix
  26. +18 −16 pkgs/development/tools/poetry2nix/poetry2nix/lib.nix
  27. +91 −81 pkgs/development/tools/poetry2nix/poetry2nix/mk-poetry-dep.nix
  28. +109 −10 pkgs/development/tools/poetry2nix/poetry2nix/overrides.nix
  29. +4 −3 pkgs/misc/emulators/retroarch/cores.nix
  30. +47 −36 pkgs/misc/vim-plugins/generated.nix
  31. +1 −0 pkgs/misc/vim-plugins/vim-plugin-names
  32. +2 −2 pkgs/os-specific/linux/kernel/linux-libre.nix
  33. +2 −2 pkgs/os-specific/linux/kernel/linux-testing.nix
  34. +9 −2 pkgs/os-specific/linux/kernel/update-libre.sh
  35. +75 −19 pkgs/tools/misc/hakuneko/default.nix
  36. +2 −0 pkgs/top-level/ocaml-packages.nix
  37. +8 −0 pkgs/top-level/python-packages.nix
12 changes: 0 additions & 12 deletions lib/types.nix
Original file line number Diff line number Diff line change
@@ -367,18 +367,6 @@ rec {
{ path = [ "services" "geoclue2" "appConfig" ];
name = "desktopID";
}
{ path = [ "home-manager" "users" anyString "programs" "ssh" "matchBlocks" ];
name = "host"; # https://github.com/rycee/home-manager/blob/e8dbc3561373b68d12decb3c0d7c1ba245f138f7/modules/programs/ssh.nix#L265
}
{ path = [ "home-manager" "users" anyString "home" "file" ];
name = "target"; # https://github.com/rycee/home-manager/blob/0e9b7aab3c6c27bf020402e0e2ef20b65c040552/modules/files.nix#L33
}
{ path = [ "home-manager" "users" anyString "xdg" "configFile" ];
name = "target"; # https://github.com/rycee/home-manager/blob/54de0e1d79a1370e57a8f23bef89f99f9b92ab67/modules/misc/xdg.nix#L41
}
{ path = [ "home-manager" "users" anyString "xdg" "dataFile" ];
name = "target"; # https://github.com/rycee/home-manager/blob/54de0e1d79a1370e57a8f23bef89f99f9b92ab67/modules/misc/xdg.nix#L58
}
];
matched = let
equals = a: b: b == anyString || a == b;
17 changes: 17 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -2439,6 +2439,12 @@
githubId = 844574;
name = "Daniel Austin";
};
flyfloh = {
email = "nix@halbmastwurf.de";
github = "flyfloh";
githubId = 74379;
name = "Florian Pester";
};
fmthoma = {
email = "f.m.thoma@googlemail.com";
github = "fmthoma";
@@ -5082,6 +5088,12 @@
githubId = 7588406;
name = "Andrew R. M.";
};
nloomans = {
email = "noah@nixos.noahloomans.com";
github = "nloomans";
githubId = 7829481;
name = "Noah Loomans";
};
nmattia = {
email = "nicolas@nmattia.com";
github = "nmattia";
@@ -7026,6 +7038,11 @@
github = "timbertson";
name = "Tim Cuthbertson";
};
timma = {
email = "kunduru.it.iitb@gmail.com";
github = "ktrsoft";
name = "Timma";
};
timokau = {
email = "timokau@zoho.com";
github = "timokau";
13 changes: 13 additions & 0 deletions nixos/modules/hardware/usb-wwan.nix
Original file line number Diff line number Diff line change
@@ -21,6 +21,19 @@ with lib;
###### implementation

config = mkIf config.hardware.usbWwan.enable {
# Attaches device specific handlers.
services.udev.packages = with pkgs; [ usb-modeswitch-data ];

# Triggered by udev, usb-modeswitch creates systemd services via a
# template unit in the usb-modeswitch package.
systemd.packages = with pkgs; [ usb-modeswitch ];

# The systemd service requires the usb-modeswitch-data. The
# usb-modeswitch package intends to discover this via the
# filesystem at /usr/share/usb_modeswitch, and merge it with user
# configuration in /etc/usb_modeswitch.d. Configuring the correct
# path in the package is difficult, as it would cause a cyclic
# dependency.
environment.etc."usb_modeswitch.d".source = "${pkgs.usb-modeswitch-data}/share/usb_modeswitch";
};
}
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -735,6 +735,7 @@
./services/networking/wicd.nix
./services/networking/wireguard.nix
./services/networking/wpa_supplicant.nix
./services/networking/xandikos.nix
./services/networking/xinetd.nix
./services/networking/xl2tpd.nix
./services/networking/xrdp.nix
148 changes: 148 additions & 0 deletions nixos/modules/services/networking/xandikos.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
{ config, lib, pkgs, ... }:

with lib;

let
cfg = config.services.xandikos;
in
{

options = {
services.xandikos = {
enable = mkEnableOption "Xandikos CalDAV and CardDAV server";

package = mkOption {
type = types.package;
default = pkgs.xandikos;
defaultText = "pkgs.xandikos";
description = "The Xandikos package to use.";
};

address = mkOption {
type = types.str;
default = "localhost";
description = ''
The IP address on which Xandikos will listen.
By default listens on localhost.
'';
};

port = mkOption {
type = types.port;
default = 8080;
description = "The port of the Xandikos web application";
};

routePrefix = mkOption {
type = types.str;
default = "/";
description = ''
Path to Xandikos.
Useful when Xandikos is behind a reverse proxy.
'';
};

extraOptions = mkOption {
default = [];
type = types.listOf types.str;
example = literalExample ''
[ "--autocreate"
"--defaults"
"--current-user-principal user"
"--dump-dav-xml"
]
'';
description = ''
Extra command line arguments to pass to xandikos.
'';
};

nginx = mkOption {
default = {};
description = ''
Configuration for nginx reverse proxy.
'';

type = types.submodule {
options = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
Configure the nginx reverse proxy settings.
'';
};

hostName = mkOption {
type = types.str;
description = ''
The hostname use to setup the virtualhost configuration
'';
};
};
};
};

};

};

config = mkIf cfg.enable (
mkMerge [
{
meta.maintainers = [ lib.maintainers."0x4A6F" ];

systemd.services.xandikos = {
description = "A Simple Calendar and Contact Server";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];

serviceConfig = {
User = "xandikos";
Group = "xandikos";
DynamicUser = "yes";
RuntimeDirectory = "xandikos";
StateDirectory = "xandikos";
StateDirectoryMode = "0700";
PrivateDevices = true;
# Sandboxing
CapabilityBoundingSet = "CAP_NET_RAW CAP_NET_ADMIN";
ProtectSystem = "strict";
ProtectHome = true;
PrivateTmp = true;
ProtectKernelTunables = true;
ProtectKernelModules = true;
ProtectControlGroups = true;
RestrictAddressFamilies = "AF_INET AF_INET6 AF_UNIX AF_PACKET AF_NETLINK";
RestrictNamespaces = true;
LockPersonality = true;
MemoryDenyWriteExecute = true;
RestrictRealtime = true;
RestrictSUIDSGID = true;
ExecStart = ''
${cfg.package}/bin/xandikos \
--directory /var/lib/xandikos \
--listen_address ${cfg.address} \
--port ${toString cfg.port} \
--route-prefix ${cfg.routePrefix} \
${lib.concatStringsSep " " cfg.extraOptions}
'';
};
};
}

(
mkIf cfg.nginx.enable {
services.nginx = {
enable = true;
virtualHosts."${cfg.nginx.hostName}" = {
locations."/" = {
proxyPass = "http://${cfg.address}:${toString cfg.port}/";
};
};
};
}
)
]
);
}
1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
@@ -295,6 +295,7 @@ in
wireguard-generated = handleTest ./wireguard/generated.nix {};
wireguard-namespaces = handleTest ./wireguard/namespaces.nix {};
wordpress = handleTest ./wordpress.nix {};
xandikos = handleTest ./xandikos.nix {};
xautolock = handleTest ./xautolock.nix {};
xfce = handleTest ./xfce.nix {};
xmonad = handleTest ./xmonad.nix {};
70 changes: 70 additions & 0 deletions nixos/tests/xandikos.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import ./make-test-python.nix (
{ pkgs, lib, ... }:

{
name = "xandikos";

meta.maintainers = [ lib.maintainers."0x4A6F" ];

nodes = {
xandikos_client = {};
xandikos_default = {
networking.firewall.allowedTCPPorts = [ 8080 ];
services.xandikos.enable = true;
};
xandikos_proxy = {
networking.firewall.allowedTCPPorts = [ 80 8080 ];
services.xandikos.enable = true;
services.xandikos.address = "localhost";
services.xandikos.port = 8080;
services.xandikos.routePrefix = "/xandikos/";
services.xandikos.extraOptions = [
"--defaults"
];
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts."xandikos" = {
serverName = "xandikos.local";
basicAuth.xandikos = "snakeOilPassword";
locations."/xandikos/" = {
proxyPass = "http://localhost:8080/";
};
};
};
};
};

testScript = ''
start_all()
with subtest("Xandikos default"):
xandikos_default.wait_for_unit("multi-user.target")
xandikos_default.wait_for_unit("xandikos.service")
xandikos_default.wait_for_open_port(8080)
xandikos_default.succeed("curl --fail http://localhost:8080/")
xandikos_default.succeed(
"curl -s --fail --location http://localhost:8080/ | grep -qi Xandikos"
)
xandikos_client.wait_for_unit("network.target")
xandikos_client.fail("curl --fail http://xandikos_default:8080/")
with subtest("Xandikos proxy"):
xandikos_proxy.wait_for_unit("multi-user.target")
xandikos_proxy.wait_for_unit("xandikos.service")
xandikos_proxy.wait_for_open_port(8080)
xandikos_proxy.succeed("curl --fail http://localhost:8080/")
xandikos_proxy.succeed(
"curl -s --fail --location http://localhost:8080/ | grep -qi Xandikos"
)
xandikos_client.wait_for_unit("network.target")
xandikos_client.fail("curl --fail http://xandikos_proxy:8080/")
xandikos_client.succeed(
"curl -s --fail -u xandikos:snakeOilPassword -H 'Host: xandikos.local' http://xandikos_proxy/xandikos/ | grep -qi Xandikos"
)
xandikos_client.succeed(
"curl -s --fail -u xandikos:snakeOilPassword -H 'Host: xandikos.local' http://xandikos_proxy/xandikos/user/ | grep -qi Xandikos"
)
'';
}
)
12 changes: 3 additions & 9 deletions pkgs/applications/audio/pavucontrol/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ fetchurl, stdenv, pkgconfig, intltool, libpulseaudio, gtkmm3
, libcanberra-gtk3, makeWrapper, gnome3 }:
, libcanberra-gtk3, gnome3, wrapGAppsHook }:

stdenv.mkDerivation rec {
pname = "pavucontrol";
@@ -10,16 +10,10 @@ stdenv.mkDerivation rec {
sha256 = "1qhlkl3g8d7h72xjskii3g1l7la2cavwp69909pzmbi2jyn5pi4g";
};

preFixup = ''
wrapProgram "$out/bin/pavucontrol" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS"
'';

buildInputs = [ libpulseaudio gtkmm3 libcanberra-gtk3 makeWrapper
buildInputs = [ libpulseaudio gtkmm3 libcanberra-gtk3
gnome3.adwaita-icon-theme ];

nativeBuildInputs = [ pkgconfig intltool ];
nativeBuildInputs = [ pkgconfig intltool wrapGAppsHook ];

configureFlags = [ "--disable-lynx" ];

6 changes: 3 additions & 3 deletions pkgs/applications/audio/spotifyd/default.nix
Original file line number Diff line number Diff line change
@@ -6,16 +6,16 @@

rustPlatform.buildRustPackage rec {
pname = "spotifyd";
version = "0.2.20";
version = "0.2.23";

src = fetchFromGitHub {
owner = "Spotifyd";
repo = "spotifyd";
rev = "v${version}";
sha256 = "1hf4wpk7r0s4jpjhxaz67y1hd8jx9ns5imd85r3cdg4lxf3j5gph";
sha256 = "0xxr21avgr4pvlr5vgb68jmad5xy5kqvaxfzh0qn1jpiax7y3avm";
};

cargoSha256 = "1h3fis47hmxvppiv1icjhgp48nd46gayfcmzfjs34q6jask90n0w";
cargoSha256 = "1ykmn7zzwn9my96bbxwkparab5lck1zzdkpafil2mmrjyvyi40da";

cargoBuildFlags = [
"--no-default-features"
Loading