Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
dezgeg committed Feb 24, 2018
2 parents 19784ca + 7d37688 commit ae9d4fa
Show file tree
Hide file tree
Showing 31 changed files with 848 additions and 1,666 deletions.
10 changes: 5 additions & 5 deletions nixos/doc/manual/release-notes/rl-1803.xml
Expand Up @@ -80,6 +80,11 @@ has the following highlights: </para>
following incompatible changes:</para>

<itemizedlist>
<listitem>
<para>
<literal>sound.enable</literal> now defaults to false.
</para>
</listitem>
<listitem>
<para>
Dollar signs in options under <option>services.postfix</option> are
Expand Down Expand Up @@ -209,11 +214,6 @@ following incompatible changes:</para>
For <literal>stateVersion = "17.09"</literal> or lower the old behavior is preserved.
</para>
<itemizedlist>
<listitem>
<para>
<literal>sound.enable</literal> now defaults to false.
</para>
</listitem>
<listitem>
<para>
<literal>matrix-synapse</literal> uses postgresql by default instead of sqlite.
Expand Down
5 changes: 5 additions & 0 deletions nixos/modules/programs/chromium.nix
Expand Up @@ -36,6 +36,7 @@ in
"chlffgpmiacpedhhbkiomidkjlcfhogd" # pushbullet
"mbniclmhobmnbdlbpiphghaielnnpgdp" # lightshot
"gcbommkclmclpchllfjekcdonpmejbdp" # https everywhere
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
]
'';
};
Expand Down Expand Up @@ -78,7 +79,11 @@ in
###### implementation

config = lib.mkIf cfg.enable {
# for chromium
environment.etc."chromium/policies/managed/default.json".text = builtins.toJSON defaultProfile;
environment.etc."chromium/policies/managed/extra.json".text = builtins.toJSON cfg.extraOpts;
# for google-chrome https://www.chromium.org/administrators/linux-quick-start
environment.etc."opt/chrome/policies/managed/default.json".text = builtins.toJSON defaultProfile;
environment.etc."opt/chrome/policies/managed/extra.json".text = builtins.toJSON cfg.extraOpts;
};
}
10 changes: 3 additions & 7 deletions nixos/modules/services/audio/alsa.nix
Expand Up @@ -21,7 +21,7 @@ in

enable = mkOption {
type = types.bool;
defaultText = "!versionAtLeast system.stateVersion \"18.03\"";
default = false;
description = ''
Whether to enable ALSA sound.
'';
Expand Down Expand Up @@ -78,11 +78,7 @@ in

###### implementation

config = mkMerge [
({
sound.enable = mkDefault (!versionAtLeast config.system.stateVersion "18.03");
})
(mkIf config.sound.enable {
config = mkIf config.sound.enable {

environment.systemPackages = [ alsaUtils ];

Expand Down Expand Up @@ -128,6 +124,6 @@ in
];
};

})];
};

}
6 changes: 1 addition & 5 deletions nixos/modules/services/hardware/fwupd.nix
Expand Up @@ -8,12 +8,8 @@ let
cfg = config.services.fwupd;
originalEtc =
let
isRegular = v: v == "regular";
listFiles = d: builtins.attrNames (filterAttrs (const isRegular) (builtins.readDir d));
copiedDirs = [ "fwupd/remotes.d" "pki/fwupd" "pki/fwupd-metadata" ];
originalFiles = concatMap (d: map (f: "${d}/${f}") (listFiles "${pkgs.fwupd}/etc/${d}")) copiedDirs;
mkEtcFile = n: nameValuePair n { source = "${pkgs.fwupd}/etc/${n}"; };
in listToAttrs (map mkEtcFile originalFiles);
in listToAttrs (map mkEtcFile pkgs.fwupd.filesInstalledToEtc);
extraTrustedKeys =
let
mkName = p: "pki/fwupd/${baseNameOf (toString p)}";
Expand Down
2 changes: 2 additions & 0 deletions nixos/modules/services/networking/tinc.nix
Expand Up @@ -178,6 +178,8 @@ in
preStart = ''
mkdir -p /etc/tinc/${network}/hosts
chown tinc.${network} /etc/tinc/${network}/hosts
mkdir -p /etc/tinc/${network}/invitations
chown tinc.${network} /etc/tinc/${network}/invitations
# Determine how we should generate our keys
if type tinc >/dev/null 2>&1; then
Expand Down
2 changes: 1 addition & 1 deletion nixos/release.nix
Expand Up @@ -258,7 +258,7 @@ in rec {
tests.firefox = callTest tests/firefox.nix {};
tests.firewall = callTest tests/firewall.nix {};
tests.fleet = callTestOnTheseSystems ["x86_64-linux"] tests/fleet.nix {};
#tests.fwupd = callTest tests/fwupd.nix {}; # build during evaluation
tests.fwupd = callTest tests/fwupd.nix {};
#tests.gitlab = callTest tests/gitlab.nix {};
tests.gitolite = callTest tests/gitolite.nix {};
tests.gjs = callTest tests/gjs.nix {};
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/editors/android-studio/default.nix
Expand Up @@ -29,9 +29,9 @@ in rec {
# linux-beta-bundle
preview = mkStudio {
pname = "android-studio-preview";
version = "3.1.0.11"; # "Android Studio 3.1 Beta 3"
build = "173.4595152";
sha256Hash = "0106ggrf4mkxx3a2dn02km8rdq23sf15ifysykcay29skgdmq6wx";
version = "3.1.0.12"; # "Android Studio 3.1 Beta 4"
build = "173.4615496";
sha256Hash = "0rp0vg5hwv7kdrirydvnwznpfwibwwm2dxsbhbxfkyahph10ly72";

meta = stable.meta // {
description = "The Official IDE for Android (preview version)";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/editors/micro/default.nix
Expand Up @@ -2,15 +2,15 @@

buildGoPackage rec {
name = "micro-${version}";
version = "1.3.4";
version = "1.4.0";

goPackagePath = "github.com/zyedidia/micro";

src = fetchFromGitHub {
owner = "zyedidia";
repo = "micro";
rev = "v${version}";
sha256 = "1giyp2xk2rb6vdyfnj5wa7qb9fwbcmmwm16wdlnmq7xnp7qamdkw";
sha256 = "0w1rmh81h28n1jlb05k89i751h498i6p883hrsjr70hvrwq5zjpb";
fetchSubmodules = true;
};

Expand Down
10 changes: 10 additions & 0 deletions pkgs/applications/misc/mupdf/default.nix
Expand Up @@ -29,6 +29,16 @@ in stdenv.mkDerivation rec {
url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/0001-mupdf-openjpeg.patch?h=packages/mupdf&id=a910cd33a2b311712f83710dc042fbe80c104306";
sha256 = "05i9v2ia586jyjqdb7g68ss4vkfwgp6cwhagc8zzggsba83azyqk";
})
(fetchpatch {
name = "CVE-2018-6544.1.patch";
url = "http://git.ghostscript.com/?p=mupdf.git;a=commitdiff_plain;h=b03def134988da8c800adac1a38a41a1f09a1d89;hp=26527eef77b3e51c2258c8e40845bfbc015e405d";
sha256 = "1rlmjibl73ls8xfpsz69axa3lw5l47vb0a1dsjqziszsld4lpj5i";
})
(fetchpatch {
name = "CVE-2018-6544.2.patch";
url = "http://git.ghostscript.com/?p=mupdf.git;a=patch;h=26527eef77b3e51c2258c8e40845bfbc015e405d;hp=ab98356f959c7a6e94b1ec10f78dd2c33ed3f3e7";
sha256 = "1brcc029s5zmd6ya0d9qk3mh9qwx5g6vhsf1j8h879092sya5627";
})
]

# Use shared libraries to decrease size
Expand Down
19 changes: 13 additions & 6 deletions pkgs/applications/science/math/sage/default.nix
Expand Up @@ -21,7 +21,7 @@
, bash
, fetchurl
, perl
, gfortran
, gfortran6
, python
, autoreconfHook
, gettext
Expand Down Expand Up @@ -94,13 +94,13 @@ stdenv.mkDerivation rec {
bash # needed for the build
perl # needed for the build
python # needed for the build
gfortran # needed to build giac, openblas
gfortran6 # needed to build giac, openblas
autoreconfHook # needed to configure sage with prefix
gettext # needed to build the singular spkg
hevea # needed to build the docs of the giac spkg
which # needed in configure of mpir
# needed to build the docs of the giac spkg
texinfo # needed to build maxima
] ++ stdenv.lib.optionals(buildDocs) [
hevea # needed to build the docs of the giac spkg
(texlive.combine { inherit (texlive)
scheme-basic
collection-pstricks # needed by giac
Expand All @@ -111,7 +111,7 @@ stdenv.mkDerivation rec {
})
];

nativeBuildInputs = [ gfortran perl which ];
nativeBuildInputs = [ gfortran6 perl which ];

patches = [
# fix usages of /bin/rm
Expand Down Expand Up @@ -153,13 +153,13 @@ stdenv.mkDerivation rec {
cd ..
mv "$dir" "$out/sage-root"
export SAGE_SPKG_INSTALL_DOCS='no'
cd "$out/sage-root" # build in target dir, since `make` is also `make install`
''
+ stdenv.lib.optionalString (buildDocs) ''
mkdir -p "$doc"
export SAGE_DOC="$doc"
export SAGE_DOCBUILD_OPTS="--no-pdf-links -k"
export SAGE_SPKG_INSTALL_DOCS='no'
'';

buildFlags = if (buildDocs) then "doc" else "build";
Expand Down Expand Up @@ -191,6 +191,13 @@ stdenv.mkDerivation rec {
rm -f "$out/sage-root/config.status"
rm -f "$out/sage-root/build/make/Makefile-auto"
rm -f "$out/sage-home/.sage/gap/libgap-workspace-"*
# Make sure unnessessary packages don't end up in the build closure
find "$out" \
-iname 'config.log' \
-delete \
-or -iname 'Makefile' \
-delete
rm -f "$out/lib/R/etc/Renviron"
# Make sure all shebangs are properly patched
bash $patchSageShebangs $out
'';
Expand Down
4 changes: 2 additions & 2 deletions pkgs/data/misc/hackage/default.nix
@@ -1,6 +1,6 @@
{ fetchurl }:

fetchurl {
url = "https://github.com/commercialhaskell/all-cabal-hashes/archive/4c8b3501ea6fc9f41cd192ddc08e2d9583a1e679.tar.gz";
sha256 = "0aa4pimgllqgn8bcy2p2cdwbpz6s6wk8j41w35jvzaqfj15gysnq";
url = "https://github.com/commercialhaskell/all-cabal-hashes/archive/46704e06debe8b2c7c875d5e910fe168d7e49827.tar.gz";
sha256 = "131ga0pz1h7f3zimrd7yn6v8q7j2wh6srjrvl97p9bx1cbg8xqgl";
}
2 changes: 1 addition & 1 deletion pkgs/development/haskell-modules/configuration-common.nix
Expand Up @@ -833,7 +833,7 @@ self: super: {
rev = "8b79823c32e234c161baec67fdf7907952ca62b8";
sha256 = "0hyrcyssclkdfcw2kgcark8jl869snwnbrhr9k0a9sbpk72wp7nz";
};
}).override { language-c = self.language-c_0_7_2; };
});

# Needs pginit to function and pgrep to verify.
tmp-postgres = overrideCabal super.tmp-postgres (drv: {
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix
Expand Up @@ -197,7 +197,9 @@ self: super: {
mono-traversable = addBuildDepend super.mono-traversable self.semigroups;
natural-transformation = addBuildDepend super.natural-transformation self.semigroups;
optparse-applicative = addBuildDepends super.optparse-applicative [self.semigroups self.fail];
parsec = addBuildDepends super.parsec [self.fail self.semigroups];
QuickCheck = addBuildDepend super.QuickCheck self.semigroups;
reflection = addBuildDepend super.reflection self.semigroups;
semigroups = addBuildDepends (dontCheck super.semigroups) (with self; [hashable tagged text unordered-containers]);
texmath = addBuildDepend super.texmath self.network-uri;
yesod-auth-oauth2 = overrideCabal super.yesod-auth-oauth2 (drv: { testDepends = (drv.testDepends or []) ++ [ self.load-env self.yesod ]; });
Expand Down
25 changes: 1 addition & 24 deletions pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix
Expand Up @@ -62,13 +62,7 @@ self: super: {

## Needs bump to a versioned attribute
## Issue: https://github.com/sol/doctest/issues/189
doctest = overrideCabal super.doctest_0_14_0 (drv: {
## Setup: Encountered missing dependencies:
## ghc >=7.0 && <8.4
##
## uncaught exception: IOException of type NoSuchThing (test/integration/testImport: changeWorkingDirectory: does not exist (No such file or directory))
doCheck = false;
});
doctest = dontCheck super.doctest_0_14_1; # test suite fails in Nix

## Needs bump to a versioned attribute
## • Could not deduce (Semigroup (IterT m a))
Expand Down Expand Up @@ -112,12 +106,6 @@ self: super: {
## hspec-discover ==2.4.7
hspec-discover = super.hspec-discover_2_4_8;

## Needs bump to a versioned attribute
## Ambiguous occurrence ‘<>’
## It could refer to either ‘Prelude.<>’,
## imported from ‘Prelude’ at src/Language/C/Pretty.hs:15:8-24
language-c = super.language-c_0_7_2;

## Needs bump to a versioned attribute
## Setup: Encountered missing dependencies:
## free ==4.*, template-haskell >=2.4 && <2.13
Expand All @@ -131,12 +119,6 @@ self: super: {
## doctest >=0.11.1 && <0.14
semigroupoids = super.semigroupoids_5_2_2;

## Needs bump to a versioned attribute
## • No instance for (Semigroup Builder)
## arising from the superclasses of an instance declaration
## • In the instance declaration for ‘Monoid Builder’
stringbuilder = super.stringbuilder_0_5_1;

## Needs bump to a versioned attribute
## Issue: https://github.com/haskell/test-framework/issues/35
test-framework = overrideCabal super.test-framework_0_8_2_0 (drv: {
Expand Down Expand Up @@ -489,11 +471,6 @@ self: super: {
jailbreak = true;
});

doctest_0_14_0 = overrideCabal super.doctest_0_14_0 (drv: {
## uncaught exception: IOException of type NoSuchThing (test/integration/testImport: changeWorkingDirectory: does not exist (No such file or directory))
doCheck = false;
});

exception-transformers = overrideCabal super.exception-transformers (drv: {
## Setup: Encountered missing dependencies:
## HUnit >=1.2 && <1.6
Expand Down

0 comments on commit ae9d4fa

Please sign in to comment.