Skip to content

Commit

Permalink
Merge master into staging-next
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Jan 12, 2020
2 parents 1a65457 + e567214 commit 960f062
Show file tree
Hide file tree
Showing 66 changed files with 1,808 additions and 756 deletions.
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2003-2019 Eelco Dolstra and the Nixpkgs/NixOS contributors
Copyright (c) 2003-2020 Eelco Dolstra and the Nixpkgs/NixOS contributors

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion doc/functions/library/attrsets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ lib.attrsets.attrValues { a = 1; b = 2; c = 3; }
<section xml:id="function-library-lib.attrsets.catAttrs">
<title><function>lib.attrsets.catAttrs</function></title>

<subtitle><literal>catAttrs :: String -> AttrSet -> [Any]</literal>
<subtitle><literal>catAttrs :: String -> [AttrSet] -> [Any]</literal>
</subtitle>

<xi:include href="./locations.xml" xpointer="lib.attrsets.catAttrs" />
Expand Down
16 changes: 16 additions & 0 deletions nixos/modules/programs/sway.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ let

swayPackage = pkgs.sway.override {
extraSessionCommands = cfg.extraSessionCommands;
extraOptions = cfg.extraOptions;
withBaseWrapper = cfg.wrapperFeatures.base;
withGtkWrapper = cfg.wrapperFeatures.gtk;
};
Expand Down Expand Up @@ -67,6 +68,21 @@ in {
'';
};

extraOptions = mkOption {
type = types.listOf types.str;
default = [];
example = [
"--verbose"
"--debug"
"--unsupported-gpu"
"--my-next-gpu-wont-be-nvidia"
];
description = ''
Command line arguments passed to launch Sway. Please DO NOT report
issues if you use an unsupported GPU (proprietary drivers).
'';
};

extraPackages = mkOption {
type = with types; listOf package;
default = with pkgs; [
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/hardware/actkbd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ in
See <command>actkbd</command> <filename>README</filename> for documentation.
The example shows a piece of what <option>sound.enableMediaKeys</option> does when enabled.
The example shows a piece of what <option>sound.mediaKeys.enable</option> does when enabled.
'';
};

Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/nat.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ let
destinationPorts = if (m == null) then throw "bad ip:ports `${fwd.destination}'" else elemAt m 1;
in ''
# Allow connections to ${loopbackip}:${toString fwd.sourcePort} from the host itself
iptables -w -t nat -A OUTPUT \
iptables -w -t nat -A nixos-nat-out \
-d ${loopbackip} -p ${fwd.proto} \
--dport ${builtins.toString fwd.sourcePort} \
-j DNAT --to-destination ${fwd.destination}
Expand Down
10 changes: 10 additions & 0 deletions nixos/modules/services/web-apps/nextcloud.nix
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@ in {
'';
};

trustedProxies = mkOption {
type = types.listOf types.str;
default = [];
description = ''
Trusted proxies, to provide if the nextcloud installation is being
proxied to secure against e.g. spoofing.
'';
};

overwriteProtocol = mkOption {
type = types.nullOr (types.enum [ "http" "https" ]);
default = null;
Expand Down Expand Up @@ -352,6 +361,7 @@ in {
${optionalString (c.dbpassFile != null) "'dbpassword' => nix_read_pwd(),"}
'dbtype' => '${c.dbtype}',
'trusted_domains' => ${writePhpArrary ([ cfg.hostName ] ++ c.extraTrustedDomains)},
'trusted_proxies' => ${writePhpArrary (c.trustedProxies)},
];
'';
occInstallCmd = let
Expand Down
10 changes: 5 additions & 5 deletions pkgs/applications/audio/qmidinet/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, pkgconfig, qt5, alsaLib, libjack2 }:
{ mkDerivation, lib, fetchurl, pkgconfig, qtbase, qttools, alsaLib, libjack2 }:

stdenv.mkDerivation rec {
mkDerivation rec {
version = "0.6.1";
pname = "qmidinet";

Expand All @@ -11,15 +11,15 @@ stdenv.mkDerivation rec {

hardeningDisable = [ "format" ];

buildInputs = [ qt5.qtbase qt5.qttools alsaLib libjack2 ];
buildInputs = [ qtbase qttools alsaLib libjack2 ];

nativeBuildInputs = [ pkgconfig ];

meta = with stdenv.lib; {
meta = with lib; {
description = "A MIDI network gateway application that sends and receives MIDI data (ALSA Sequencer and/or JACK MIDI) over the network";
homepage = http://qmidinet.sourceforge.net/;
license = licenses.gpl2Plus;
maintainers = [ maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux;
platforms = platforms.linux;
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/audio/qtractor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

stdenv.mkDerivation rec {
pname = "qtractor";
version = "0.9.11";
version = "0.9.12";

src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
sha256 = "02cpjlf3j4sm74hz88r1frnlycs52rs11mzplr2q8plji3ic5w50";
sha256 = "06493sf4hr178jkvric3rmc2phh1ph2jlyh8kl9z248amq3zfnhy";
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/goxel/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

stdenv.mkDerivation rec {
pname = "goxel";
version = "0.10.0";
version = "0.10.5";

src = fetchFromGitHub {
owner = "guillaumechereau";
repo = "goxel";
rev = "v${version}";
sha256 = "1mdw4bs7hvfn0yngd9ial5wzlfkcbhr3wzldb1w7s3s48agixkdr";
sha256 = "1b63jqryq19qa81g1ml6d85f27wj1ci3h56r02cl9xn8di5p674f";
};

patches = [ ./disable-imgui_ini.patch ];
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/graphics/krita/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ mkDerivation rec {
python3Packages.pyqt5
] ++ lib.optional (stdenv.hostPlatform.isi686 || stdenv.hostPlatform.isx86_64) vc;

NIX_CFLAGS_COMPILE = [ "-I${ilmbase.dev}/include/OpenEXR" ];
NIX_CFLAGS_COMPILE = [ "-I${ilmbase.dev}/include/OpenEXR" ]
++ lib.optional stdenv.cc.isGNU "-Wno-deprecated-copy";

cmakeFlags = [
"-DPYQT5_SIP_DIR=${python3Packages.pyqt5}/share/sip/PyQt5"
Expand Down
10 changes: 5 additions & 5 deletions pkgs/applications/graphics/rx/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{ stdenv, rustPlatform, fetchFromGitHub, makeWrapper
, cmake, pkgconfig
, xorg ? null
, vulkan-loader ? null }:
, libGL ? null }:

with stdenv.lib;

rustPlatform.buildRustPackage rec {
pname = "rx";
version = "0.3.0";
version = "0.3.1";

src = fetchFromGitHub {
owner = "cloudhead";
repo = pname;
rev = "v${version}";
sha256 = "0mhpq9x54d884ydmfv1358sgc4jc7bghfx2y0k7p879hyyxr52v1";
sha256 = "1byaxbhd3q49473kcdd52rvn3xq7bmy8bdx3pz0jiw96bclzhcgq";
};

cargoSha256 = "0fnrgijfkvapj1yyy9grnqh2vkciisf029af0gfwyzsxzdi62gg5";
cargoSha256 = "173jfjvdag97f6jvfg366hjk9v3cz301cbzpcahy51rbf1cip1w1";

nativeBuildInputs = [ cmake pkgconfig makeWrapper ];

Expand All @@ -32,7 +32,7 @@ rustPlatform.buildRustPackage rec {
postInstall = optional stdenv.isLinux ''
mkdir -p $out/share/applications
cp $src/rx.desktop $out/share/applications
wrapProgram $out/bin/rx --prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib
wrapProgram $out/bin/rx --prefix LD_LIBRARY_PATH : ${libGL}/lib
'';

meta = {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/sidequest/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, lib, fetchurl, buildFHSUserEnv, makeDesktopItem, makeWrapper, atomEnv, libuuid, at-spi2-atk, icu, openssl, zlib }:
let
pname = "sidequest";
version = "0.7.6";
version = "0.8.4";

desktopItem = makeDesktopItem rec {
name = "SideQuest";
Expand All @@ -16,7 +16,7 @@

src = fetchurl {
url = "https://github.com/the-expanse/SideQuest/releases/download/v${version}/SideQuest-${version}.tar.xz";
sha256 = "1yyba5495ydyyfl62pjd4hbga86k7f2a72ds2j2qzkinngyl14j8";
sha256 = "1fiqjzvl7isjn7w6vbbs439pp3bdhw6mnbf8483kvfb0fqhh3vs2";
};

buildInputs = [ makeWrapper ];
Expand Down
32 changes: 32 additions & 0 deletions pkgs/applications/misc/tuir/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ lib, fetchFromGitLab, python3Packages }:

with python3Packages;
buildPythonApplication rec {
pname = "tuir";
version = "1.28.3";

src = fetchFromGitLab {
owner = "ajak";
repo = pname;
rev = "v${version}";
sha256 = "0nhpbb0vdngwb0fhlimjgm3wq2s67m4rb3vv920zyllnmfplk0lk";
};

# Tests try to access network
doCheck = false;

checkPhase = ''
py.test
'';

checkInputs = [ coverage coveralls docopt mock pylint pytest vcrpy ];

propagatedBuildInputs = [ beautifulsoup4 decorator kitchen requests ];

meta = with lib; {
description = "Browse Reddit from your Terminal (fork of rtv)";
homepage = "https://gitlab.com/ajak/tuir/";
license = licenses.mit;
maintainers = with maintainers; [ filalex77 matthiasbeyer ];
};
}

0 comments on commit 960f062

Please sign in to comment.