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: 10eec0013135
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: 66fd61163a86
Choose a head ref
  • 8 commits
  • 6 files changed
  • 4 contributors

Commits on Oct 1, 2018

  1. ghcHEAD: Force INTEGER_LIBRARY like the other GHCs

    We really need to abstract to avoid these copy-paste errors.
    Ericson2314 committed Oct 1, 2018
    Copy the full SHA
    d4b5df7 View commit details
  2. ghcHEAD: Copy android hack that other GHCs have

    Not sure why this one doesn't
    Ericson2314 committed Oct 1, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    cb442d9 View commit details
  3. ghc 8.2.2: Backport cross fixes from 8.4.3

    Other patches are also needed for a working build, but that doesn't mean
    these patches are any less necessary.
    Ericson2314 committed Oct 1, 2018
    Copy the full SHA
    b191133 View commit details
  4. nixos/tests/nix-ssh-serve.nix: Use stable nix (#47584)

    (cherry picked from commit 358a1c8)
    srhb authored and xeji committed Oct 1, 2018
    Copy the full SHA
    a54dadb View commit details
  5. Merge pull request #47627 from obsidiansystems/ghc-cross-fixes

    ghc: Misc cross fixes for 18.09
    Ericson2314 authored Oct 1, 2018
    Copy the full SHA
    d296abb View commit details
  6. shairport-sync: fix pulseaudio support & default arguments

    (cherry picked from commit e7ca9af)
    fpletz committed Oct 1, 2018
    Copy the full SHA
    b3038ad View commit details
  7. nixos/clamav: fix daemon/updater services toggling

    (cherry picked from commit f8d681a)
    fpletz committed Oct 1, 2018
    Copy the full SHA
    5fc5a4f View commit details
  8. nixos/clamav: fix freshclam service if db up to date

    (cherry picked from commit 11ba2f2)
    fpletz committed Oct 1, 2018
    Copy the full SHA
    66fd611 View commit details
3 changes: 2 additions & 1 deletion nixos/modules/services/networking/shairport-sync.nix
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ in
};

arguments = mkOption {
default = "-v -o pulse";
default = "-v -d pulse";
description = ''
Arguments to pass to the daemon. Defaults to a local pulseaudio
server.
@@ -72,6 +72,7 @@ in
serviceConfig = {
User = cfg.user;
ExecStart = "${pkgs.shairport-sync}/bin/shairport-sync ${cfg.arguments}";
RuntimeDirectory = "shairport-sync";
};
};

7 changes: 4 additions & 3 deletions nixos/modules/services/security/clamav.nix
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@ in
environment.etc."clamav/freshclam.conf".source = freshclamConfigFile;
environment.etc."clamav/clamd.conf".source = clamdConfigFile;

systemd.services.clamav-daemon = optionalAttrs cfg.daemon.enable {
systemd.services.clamav-daemon = mkIf cfg.daemon.enable {
description = "ClamAV daemon (clamd)";
after = optional cfg.updater.enable "clamav-freshclam.service";
requires = optional cfg.updater.enable "clamav-freshclam.service";
@@ -116,7 +116,7 @@ in
};
};

systemd.timers.clamav-freshclam = optionalAttrs cfg.updater.enable {
systemd.timers.clamav-freshclam = mkIf cfg.updater.enable {
description = "Timer for ClamAV virus database updater (freshclam)";
wantedBy = [ "timers.target" ];
timerConfig = {
@@ -125,7 +125,7 @@ in
};
};

systemd.services.clamav-freshclam = optionalAttrs cfg.updater.enable {
systemd.services.clamav-freshclam = mkIf cfg.updater.enable {
description = "ClamAV virus database updater (freshclam)";
restartTriggers = [ freshclamConfigFile ];

@@ -137,6 +137,7 @@ in
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkg}/bin/freshclam";
SuccessExitStatus = "1"; # if databases are up to date
PrivateTmp = "yes";
PrivateDevices = "yes";
};
4 changes: 2 additions & 2 deletions nixos/tests/nix-ssh-serve.nix
Original file line number Diff line number Diff line change
@@ -14,8 +14,8 @@ in
keys = [ snakeOilPublicKey ];
protocol = "ssh-ng";
};
server.nix.package = pkgs.nixUnstable;
client.nix.package = pkgs.nixUnstable;
server.nix.package = pkgs.nix;
client.nix.package = pkgs.nix;
};
testScript = ''
startAll;
10 changes: 7 additions & 3 deletions pkgs/development/compilers/ghc/8.2.2.nix
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@

, # Whether to build dynamic libs for the standard library (on the target
# platform). Static libs are always built.
enableShared ? true
enableShared ? !stdenv.targetPlatform.useiOSPrebuilt

, # What flavour to build. An empty string indicates no
# specific flavour and falls back to ghc default values.
@@ -79,7 +79,7 @@ let
targetCC = builtins.head toolsForTarget;

in
stdenv.mkDerivation rec {
stdenv.mkDerivation (rec {
version = "8.2.2";
name = "${targetPrefix}ghc-${version}";

@@ -239,4 +239,8 @@ stdenv.mkDerivation rec {
inherit (ghc.meta) license platforms;
};

}
} // stdenv.lib.optionalAttrs targetPlatform.useAndroidPrebuilt {
dontStrip = true;
dontPatchELF = true;
noAuditTmpdir = true;
})
13 changes: 9 additions & 4 deletions pkgs/development/compilers/ghc/head.nix
Original file line number Diff line number Diff line change
@@ -32,6 +32,8 @@
ghcFlavour ? stdenv.lib.optionalString (stdenv.targetPlatform != stdenv.hostPlatform) "perf-cross"
}:

assert !enableIntegerSimple -> gmp != null;

let
inherit (stdenv) buildPlatform hostPlatform targetPlatform;

@@ -48,8 +50,7 @@ let
include mk/flavours/\$(BuildFlavour).mk
endif
DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
'' + stdenv.lib.optionalString enableIntegerSimple ''
INTEGER_LIBRARY = integer-simple
INTEGER_LIBRARY = ${if enableIntegerSimple then "integer-simple" else "integer-gmp"}
'' + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
Stage1Only = ${if targetPlatform.system == hostPlatform.system then "NO" else "YES"}
CrossCompilePrefix = ${targetPrefix}
@@ -77,7 +78,7 @@ let
targetCC = builtins.head toolsForTarget;

in
stdenv.mkDerivation rec {
stdenv.mkDerivation (rec {
inherit version;
inherit (src) rev;
name = "${targetPrefix}ghc-${version}";
@@ -206,4 +207,8 @@ stdenv.mkDerivation rec {
inherit (ghc.meta) license platforms;
};

}
} // stdenv.lib.optionalAttrs targetPlatform.useAndroidPrebuilt {
dontStrip = true;
dontPatchELF = true;
noAuditTmpdir = true;
})
4 changes: 2 additions & 2 deletions pkgs/servers/shairport-sync/default.nix
Original file line number Diff line number Diff line change
@@ -28,9 +28,9 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;

configureFlags = [
"--with-alsa" "--with-pipe" "--with-pulseaudio" "--with-stdout"
"--with-alsa" "--with-pipe" "--with-pa" "--with-stdout"
"--with-avahi" "--with-ssl=openssl" "--with-soxr"
"--without-configfiles" "--without-initscript"
"--without-configfiles"
];

meta = with stdenv.lib; {