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

Commits on Mar 21, 2021

  1. pythonPackages.jpylyzer: 1.18.0 -> 2.0.0

    enable tests
    risicle committed Mar 21, 2021

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    LnL7 Daiderd Jordan
    Copy the full SHA
    6e5d56d View commit details

Commits on Mar 26, 2021

  1. Copy the full SHA
    44f09cc View commit details

Commits on Mar 29, 2021

  1. xcbuild: fix missing library for PlistBuddy

    PlistBuddy requires liblinenoise.dylib, which is compiled from a third party
    archive, but not installed
    mroi committed Mar 29, 2021
    Copy the full SHA
    776241d View commit details

Commits on Mar 30, 2021

  1. Copy the full SHA
    bc90050 View commit details

Commits on Apr 1, 2021

  1. Copy the full SHA
    86001ce View commit details

Commits on Apr 2, 2021

  1. Copy the full SHA
    ae4613f View commit details
  2. Copy the full SHA
    54b2abe View commit details
  3. Merge pull request #118291 from risicle/ris-pillow-8.2.0

    python3Packages.pillow: 8.1.2 -> 8.2.0
    SuperSandro2000 authored Apr 2, 2021
    Copy the full SHA
    9476b3a View commit details
  4. wayland: fix build on non-Linux

    The Wayland libraries themselves only build on Linux, but other
    platforms need wayland-scanner for cross-compiling to Linux.  So for
    them, disable the libraries so only wayland-scanner is built.
    alyssais authored and primeos committed Apr 2, 2021
    Copy the full SHA
    4d8adb4 View commit details
  5. wayland: add myself to maintainers

    alyssais authored and primeos committed Apr 2, 2021
    Copy the full SHA
    ae758ea View commit details
  6. curl: add patches for CVE-2021-22876, CVE-2021-22890

    hand-backported from upstream fixes
    risicle committed Apr 2, 2021
    Copy the full SHA
    6808269 View commit details
  7. Merge pull request #117967 from mroi/patch-xcbuild

    xcbuild: fix missing library for PlistBuddy
    SuperSandro2000 authored Apr 2, 2021
    Copy the full SHA
    fc0a4c5 View commit details
  8. Copy the full SHA
    054a265 View commit details
  9. Merge pull request #118276 from alyssais/wayland

    wayland: fix build on non-Linux
    primeos authored Apr 2, 2021
    Copy the full SHA
    80da42c View commit details

Commits on Apr 3, 2021

  1. Copy the full SHA
    a6184b3 View commit details
  2. Copy the full SHA
    b7343d9 View commit details
  3. python38: 3.8.8 -> 3.8.9

    FRidh committed Apr 3, 2021
    Copy the full SHA
    d754c20 View commit details
  4. python39: 3.9.2 -> 3.9.3

    FRidh committed Apr 3, 2021
    Copy the full SHA
    9e83f91 View commit details
  5. pcsctools: use the local smartcard list

    Use the local file provided with pcsctools or alternatively look in /etc/pcsc.
    peterhoeg committed Apr 3, 2021
    Copy the full SHA
    c1db686 View commit details
  6. Copy the full SHA
    2b93e96 View commit details
  7. Copy the full SHA
    6c59345 View commit details
  8. wayland: Refactor the Nix expression

    This should make it a bit easier to read, expat is not optional (only
    for cross-compiling - WIP), and fetchpatch is no longer required.
    primeos committed Apr 3, 2021
    2
    Copy the full SHA
    ea09921 View commit details
  9. Copy the full SHA
    827f7a3 View commit details
  10. python27: fix CVE-2021-23336

    From the archive `python-gentoo-patches-2.7.18_p8.tar.xz` found at
    https://dev.gentoo.org/~mgorny/dist/python/, I copied
    `0024-3.6-bpo-42967-only-use-as-a-query-string-separator-G.patch`.
    dotlambda committed Apr 3, 2021
    Copy the full SHA
    fa410ea View commit details
  11. wayland: Add a "bin" and "dev" output

    Another advantage is that we can now use the wayland-scanner alias for
    nativeBuildInputs (which is less confusing than adding "wayland" to both
    nativeBuildInputs and buildInputs).
    primeos committed Apr 3, 2021
    Copy the full SHA
    6a30a60 View commit details
  12. Revert "Merge pull request #117886 from risicle/ris-pygments-tests"

    This is a pattern that should be avoided. So far hypothesis is the only
    package using it if I am correct, let's not add more. Instead, we should solve the underlying issue.
    That is, we build, install and test within one derivation. That we should split up.
    Doing this more will only result in trouble.
    
    This reverts commit 49e0bbb, reversing
    changes made to 2f2a554.
    FRidh committed Apr 3, 2021
    Copy the full SHA
    dc26382 View commit details
  13. python3Packages.chardet: 3.0.4 -> 4.0.0

    fabaff authored and FRidh committed Apr 3, 2021
    Copy the full SHA
    5930166 View commit details
  14. python3Packages.pygments: 2.7.4 -> 2.8.1

    mbrgm authored and FRidh committed Apr 3, 2021
    Copy the full SHA
    58009e8 View commit details
  15. Copy the full SHA
    e8ac9df View commit details
  16. Copy the full SHA
    aa81013 View commit details
  17. Copy the full SHA
    9996669 View commit details
  18. Copy the full SHA
    efbded0 View commit details
  19. Copy the full SHA
    2d5e00a View commit details
  20. Copy the full SHA
    9a412c8 View commit details
  21. Copy the full SHA
    66ebf2b View commit details
  22. Copy the full SHA
    9c6bb4f View commit details
  23. Copy the full SHA
    b72418c View commit details
  24. Copy the full SHA
    7fd29c1 View commit details
  25. Copy the full SHA
    82487fd View commit details
  26. Copy the full SHA
    be9c44d View commit details
  27. Copy the full SHA
    435b5b1 View commit details
  28. Copy the full SHA
    5bea275 View commit details
  29. Copy the full SHA
    a696679 View commit details
  30. Copy the full SHA
    2034a91 View commit details
  31. Copy the full SHA
    0ffb6c2 View commit details
  32. Copy the full SHA
    81d94e5 View commit details
  33. Copy the full SHA
    8830c7f View commit details
  34. Copy the full SHA
    c6fd758 View commit details
  35. Copy the full SHA
    9116711 View commit details
  36. Copy the full SHA
    0fa82bc View commit details
Showing 675 changed files with 5,920 additions and 3,688 deletions.
2 changes: 1 addition & 1 deletion doc/stdenv/cross-compilation.chapter.md
Original file line number Diff line number Diff line change
@@ -123,7 +123,7 @@ depsBuildBuild = [ buildPackages.stdenv.cc ];

Add the following to your `mkDerivation` invocation.
```nix
doCheck = stdenv.hostPlatform == stdenv.buildPlatfrom;
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
```

## Cross-building packages {#sec-cross-usage}
5 changes: 5 additions & 0 deletions lib/licenses.nix
Original file line number Diff line number Diff line change
@@ -125,6 +125,11 @@ lib.mapAttrs (n: v: v // { shortName = n; }) ({
fullName = ''BSD 4-clause "Original" or "Old" License'';
};

bsdOriginalUC = spdx {
spdxId = "BSD-4-Clause-UC";
fullName = "BSD 4-Clause University of California-Specific";
};

bsdProtection = spdx {
spdxId = "BSD-Protection";
fullName = "BSD Protection License";
13 changes: 13 additions & 0 deletions lib/systems/default.nix
Original file line number Diff line number Diff line change
@@ -112,6 +112,19 @@ rec {
aarch64 = "arm64";
}.${final.parsed.cpu.name} or final.parsed.cpu.name;

darwinPlatform =
if final.isMacOS then "macos"
else if final.isiOS then "ios"
else null;
# The canonical name for this attribute is darwinSdkVersion, but some
# platforms define the old name "sdkVer".
darwinSdkVersion = final.sdkVer or "10.12";
darwinMinVersion = final.darwinSdkVersion;
darwinMinVersionVariable =
if final.isMacOS then "MACOSX_DEPLOYMENT_TARGET"
else if final.isiOS then "IPHONEOS_DEPLOYMENT_TARGET"
else null;

emulator = pkgs: let
qemu-user = pkgs.qemu.override {
smartcardSupport = false;
2 changes: 2 additions & 0 deletions lib/systems/examples.nix
Original file line number Diff line number Diff line change
@@ -217,6 +217,7 @@ rec {
sdkVer = "14.3";
xcodeVer = "12.3";
xcodePlatform = "iPhoneSimulator";
darwinPlatform = "ios-simulator";
useiOSPrebuilt = true;
};

@@ -226,6 +227,7 @@ rec {
sdkVer = "14.3";
xcodeVer = "12.3";
xcodePlatform = "iPhoneSimulator";
darwinPlatform = "ios-simulator";
useiOSPrebuilt = true;
};

3 changes: 3 additions & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -697,6 +697,9 @@
./services/networking/iodine.nix
./services/networking/iperf3.nix
./services/networking/ircd-hybrid/default.nix
./services/networking/iscsi/initiator.nix
./services/networking/iscsi/root-initiator.nix
./services/networking/iscsi/target.nix
./services/networking/iwd.nix
./services/networking/jicofo.nix
./services/networking/jitsi-videobridge.nix
71 changes: 32 additions & 39 deletions nixos/modules/services/hardware/pcscd.nix
Original file line number Diff line number Diff line change
@@ -10,60 +10,53 @@ let
paths = map (p: "${p}/pcsc/drivers") config.services.pcscd.plugins;
};

in {
in
{

###### interface

options = {
options.services.pcscd = {
enable = mkEnableOption "PCSC-Lite daemon";

services.pcscd = {
enable = mkEnableOption "PCSC-Lite daemon";

plugins = mkOption {
type = types.listOf types.package;
default = [ pkgs.ccid ];
defaultText = "[ pkgs.ccid ]";
example = literalExample "[ pkgs.pcsc-cyberjack ]";
description = "Plugin packages to be used for PCSC-Lite.";
};

readerConfig = mkOption {
type = types.lines;
default = "";
example = ''
FRIENDLYNAME "Some serial reader"
DEVICENAME /dev/ttyS0
LIBPATH /path/to/serial_reader.so
CHANNELID 1
'';
description = ''
Configuration for devices that aren't hotpluggable.
plugins = mkOption {
type = types.listOf types.package;
default = [ pkgs.ccid ];
defaultText = "[ pkgs.ccid ]";
example = literalExample "[ pkgs.pcsc-cyberjack ]";
description = "Plugin packages to be used for PCSC-Lite.";
};

See <citerefentry><refentrytitle>reader.conf</refentrytitle>
<manvolnum>5</manvolnum></citerefentry> for valid options.
'';
};
readerConfig = mkOption {
type = types.lines;
default = "";
example = ''
FRIENDLYNAME "Some serial reader"
DEVICENAME /dev/ttyS0
LIBPATH /path/to/serial_reader.so
CHANNELID 1
'';
description = ''
Configuration for devices that aren't hotpluggable.
See <citerefentry><refentrytitle>reader.conf</refentrytitle>
<manvolnum>5</manvolnum></citerefentry> for valid options.
'';
};
};

###### implementation

config = mkIf config.services.pcscd.enable {

systemd.sockets.pcscd = {
description = "PCSC-Lite Socket";
wantedBy = [ "sockets.target" ];
before = [ "multi-user.target" ];
socketConfig.ListenStream = "/run/pcscd/pcscd.comm";
};
environment.etc."reader.conf".source = cfgFile;

systemd.packages = [ (getBin pkgs.pcsclite) ];

systemd.sockets.pcscd.wantedBy = [ "sockets.target" ];

systemd.services.pcscd = {
description = "PCSC-Lite daemon";
environment.PCSCLITE_HP_DROPDIR = pluginEnv;
serviceConfig = {
ExecStart = "${getBin pkgs.pcsclite}/sbin/pcscd -f -x -c ${cfgFile}";
ExecReload = "${getBin pkgs.pcsclite}/sbin/pcscd -H";
};
restartTriggers = [ "/etc/reader.conf" ];
};
};
}
84 changes: 84 additions & 0 deletions nixos/modules/services/networking/iscsi/initiator.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{ config, lib, pkgs, ... }: with lib;
let
cfg = config.services.openiscsi;
in
{
options.services.openiscsi = with types; {
enable = mkEnableOption "the openiscsi iscsi daemon";
enableAutoLoginOut = mkEnableOption ''
automatic login and logout of all automatic targets.
You probably do not want this.
'';
discoverPortal = mkOption {
type = nullOr str;
default = null;
description = "Portal to discover targets on";
};
name = mkOption {
type = str;
description = "Name of this iscsi initiator";
example = "iqn.2020-08.org.linux-iscsi.initiatorhost:example";
};
package = mkOption {
type = package;
description = "openiscsi package to use";
default = pkgs.openiscsi;
defaultText = "pkgs.openiscsi";
};

extraConfig = mkOption {
type = str;
default = "";
description = "Lines to append to default iscsid.conf";
};

extraConfigFile = mkOption {
description = ''
Append an additional file's contents to /etc/iscsid.conf. Use a non-store path
and store passwords in this file.
'';
default = null;
type = nullOr str;
};
};

config = mkIf cfg.enable {
environment.etc."iscsi/iscsid.conf.fragment".source = pkgs.runCommand "iscsid.conf" {} ''
cat "${cfg.package}/etc/iscsi/iscsid.conf" > $out
cat << 'EOF' >> $out
${cfg.extraConfig}
${optionalString cfg.enableAutoLoginOut "node.startup = automatic"}
EOF
'';
environment.etc."iscsi/initiatorname.iscsi".text = "InitiatorName=${cfg.name}";

system.activationScripts.iscsid = let
extraCfgDumper = optionalString (cfg.extraConfigFile != null) ''
if [ -f "${cfg.extraConfigFile}" ]; then
printf "\n# The following is from ${cfg.extraConfigFile}:\n"
cat "${cfg.extraConfigFile}"
else
echo "Warning: services.openiscsi.extraConfigFile ${cfg.extraConfigFile} does not exist!" >&2
fi
'';
in ''
(
cat ${config.environment.etc."iscsi/iscsid.conf.fragment".source}
${extraCfgDumper}
) > /etc/iscsi/iscsid.conf
'';

systemd.packages = [ cfg.package ];

systemd.services."iscsid".wantedBy = [ "multi-user.target" ];
systemd.sockets."iscsid".wantedBy = [ "sockets.target" ];

systemd.services."iscsi" = mkIf cfg.enableAutoLoginOut {
wantedBy = [ "remote-fs.target" ];
serviceConfig.ExecStartPre = mkIf (cfg.discoverPortal != null) "${cfg.package}/bin/iscsiadm --mode discoverydb --type sendtargets --portal ${escapeShellArg cfg.discoverPortal} --discover";
};

environment.systemPackages = [ cfg.package ];
boot.kernelModules = [ "iscsi_tcp" ];
};
}
Loading