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: 776fb73866d9
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4aebf787b8db
Choose a head ref
Loading
Showing with 2,058 additions and 1,130 deletions.
  1. +11 −1 nixos/modules/installer/tools/nixos-rebuild.sh
  2. +1 −1 nixos/modules/security/duosec.nix
  3. +23 −2 nixos/modules/services/misc/gitlab.nix
  4. +11 −6 nixos/modules/services/web-apps/matomo.nix
  5. +2 −0 nixos/modules/virtualisation/virtualbox-host.nix
  6. +33 −3 nixos/tests/gitlab.nix
  7. +23 −5 pkgs/applications/altcoins/monero-gui/default.nix
  8. +7 −5 pkgs/applications/altcoins/monero-gui/move-log-file.patch
  9. +2 −2 pkgs/applications/altcoins/monero/default.nix
  10. +63 −0 pkgs/applications/audio/paulstretch/default.nix
  11. +4 −4 pkgs/applications/editors/vscode/default.nix
  12. +9 −9 pkgs/applications/networking/browsers/chromium/upstream-info.nix
  13. +397 −397 pkgs/applications/networking/browsers/firefox-bin/release_sources.nix
  14. +18 −3 pkgs/applications/networking/browsers/firefox/common.nix
  15. +3 −11 pkgs/applications/networking/browsers/firefox/env_var_for_system_dir.patch
  16. +4 −4 pkgs/applications/networking/browsers/firefox/packages.nix
  17. +2 −2 pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix
  18. +2 −2 pkgs/applications/networking/browsers/vivaldi/default.nix
  19. +2 −2 pkgs/applications/networking/browsers/vivaldi/ffmpeg-codecs.nix
  20. +3 −3 pkgs/applications/networking/instant-messengers/discord/default.nix
  21. +2 −2 pkgs/applications/networking/instant-messengers/signal-desktop/default.nix
  22. +10 −3 pkgs/applications/networking/instant-messengers/turses/default.nix
  23. +2 −2 pkgs/applications/networking/remote/putty/default.nix
  24. +5 −5 pkgs/applications/science/logic/elan/default.nix
  25. +18 −18 pkgs/applications/version-management/gitlab/data.json
  26. +10 −2 pkgs/applications/version-management/gitlab/gitaly/Gemfile
  27. +47 −10 pkgs/applications/version-management/gitlab/gitaly/Gemfile.lock
  28. +2 −2 pkgs/applications/version-management/gitlab/gitaly/default.nix
  29. +162 −12 pkgs/applications/version-management/gitlab/gitaly/gemset.nix
  30. +4 −2 pkgs/applications/version-management/gitlab/gitlab-shell/default.nix
  31. +21 −21 pkgs/applications/version-management/gitlab/gitlab-shell/remove-hardcoded-locations.patch
  32. +2 −2 pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix
  33. +31 −26 pkgs/applications/version-management/gitlab/rubyEnv-ce/Gemfile
  34. +90 −81 pkgs/applications/version-management/gitlab/rubyEnv-ce/Gemfile.lock
  35. +141 −109 pkgs/applications/version-management/gitlab/rubyEnv-ce/gemset.nix
  36. +31 −26 pkgs/applications/version-management/gitlab/rubyEnv-ee/Gemfile
  37. +90 −81 pkgs/applications/version-management/gitlab/rubyEnv-ee/Gemfile.lock
  38. +141 −109 pkgs/applications/version-management/gitlab/rubyEnv-ee/gemset.nix
  39. +2 −2 pkgs/applications/version-management/gogs/default.nix
  40. +2 −1 pkgs/applications/version-management/redmine/Gemfile
  41. +4 −4 pkgs/applications/version-management/redmine/Gemfile.lock
  42. +2 −2 pkgs/applications/version-management/redmine/default.nix
  43. +6 −6 pkgs/applications/version-management/redmine/gemset.nix
  44. +1 −1 pkgs/build-support/docker/default.nix
  45. +1 −0 pkgs/build-support/docker/store-path-to-layer.sh
  46. +50 −3 pkgs/build-support/references-by-popularity/closure-graph.py
  47. +235 −0 pkgs/development/compilers/ghc/8.6.4.nix
  48. +15 −5 pkgs/development/haskell-modules/generic-builder.nix
  49. +2 −0 pkgs/development/haskell-modules/lib.nix
  50. +4 −4 pkgs/development/interpreters/php/default.nix
  51. +2 −2 pkgs/development/interpreters/python/cpython/3.4/default.nix
  52. +2 −2 pkgs/development/interpreters/python/cpython/3.5/default.nix
  53. +9 −2 pkgs/development/libraries/avahi/default.nix
  54. +9 −7 pkgs/development/libraries/gnutls/3.6.nix
  55. +11 −0 pkgs/development/libraries/ldb/default.nix
  56. +15 −0 pkgs/development/libraries/libarchive/default.nix
  57. +2 −2 pkgs/development/libraries/pango/default.nix
  58. +5 −0 pkgs/development/python-modules/bpython/default.nix
  59. +2 −2 pkgs/development/python-modules/django/1_11.nix
  60. +2 −2 pkgs/development/python-modules/django/2_1.nix
  61. +4 −3 pkgs/development/python-modules/sqlalchemy-migrate/default.nix
  62. +2 −3 pkgs/development/tools/build-managers/buildbot/default.nix
  63. +2 −5 pkgs/development/tools/build-managers/buildbot/pkg.nix
  64. +5 −10 pkgs/development/tools/build-managers/buildbot/plugins.nix
  65. +0 −1 pkgs/development/tools/build-managers/buildbot/worker.nix
  66. +22 −0 pkgs/development/tools/rust/cbindgen/0_8_0.nix
  67. +2 −2 pkgs/development/web/nodejs/v10.nix
  68. +2 −2 pkgs/development/web/nodejs/v6.nix
  69. +2 −2 pkgs/development/web/nodejs/v8.nix
  70. +2 −2 pkgs/games/stepmania/default.nix
  71. +6 −1 pkgs/misc/ghostscript/default.nix
  72. +6 −1 pkgs/misc/screensavers/xscreensaver/default.nix
  73. +2 −2 pkgs/os-specific/linux/kernel/linux-4.14.nix
  74. +2 −2 pkgs/os-specific/linux/kernel/linux-4.19.nix
  75. +2 −2 pkgs/os-specific/linux/kernel/linux-4.4.nix
  76. +2 −2 pkgs/os-specific/linux/kernel/linux-4.9.nix
  77. +3 −3 pkgs/servers/atlassian/confluence.nix
  78. +2 −2 pkgs/servers/dns/bind/default.nix
  79. +2 −2 pkgs/servers/dns/powerdns/default.nix
  80. +7 −1 pkgs/servers/mail/dovecot/default.nix
  81. +17 −7 pkgs/servers/mqtt/mosquitto/default.nix
  82. +8 −0 pkgs/servers/samba/4.x.nix
  83. +3 −5 pkgs/servers/web-apps/matomo/default.nix
  84. +8 −8 pkgs/servers/web-apps/matomo/make-localhost-default-database-host.patch
  85. +2 −2 pkgs/tools/misc/youtube-dl/default.nix
  86. +23 −16 pkgs/tools/networking/ngrok-2/default.nix
  87. +39 −0 pkgs/tools/networking/ngrok-2/update
  88. +32 −0 pkgs/tools/networking/ngrok-2/versions.json
  89. +2 −2 pkgs/tools/networking/ntp/default.nix
  90. +2 −2 pkgs/tools/package-management/nix-review/default.nix
  91. +3 −3 pkgs/tools/security/kbfs/default.nix
  92. +5 −7 pkgs/tools/security/keybase/default.nix
  93. +5 −6 pkgs/tools/security/keybase/gui.nix
  94. +9 −2 pkgs/top-level/all-packages.nix
  95. +11 −0 pkgs/top-level/haskell-packages.nix
12 changes: 11 additions & 1 deletion nixos/modules/installer/tools/nixos-rebuild.sh
Original file line number Diff line number Diff line change
@@ -260,6 +260,14 @@ if [ -n "$rollback" -o "$action" = dry-build ]; then
buildNix=
fi

nixSystem() {
machine="$(uname -m)"
if [[ "$machine" =~ i.86 ]]; then
machine=i686
fi
echo $machine-linux
}

prebuiltNix() {
machine="$1"
if [ "$machine" = x86_64 ]; then
@@ -279,7 +287,9 @@ if [ -n "$buildNix" ]; then
nixDrv=
if ! nixDrv="$(nix-instantiate '<nixpkgs/nixos>' --add-root $tmpDir/nix.drv --indirect -A config.nix.package.out "${extraBuildFlags[@]}")"; then
if ! nixDrv="$(nix-instantiate '<nixpkgs>' --add-root $tmpDir/nix.drv --indirect -A nix "${extraBuildFlags[@]}")"; then
nixStorePath="$(prebuiltNix "$(uname -m)")"
if ! nixStorePath="$(nix-instantiate --eval '<nixpkgs/nixos/modules/installer/tools/nix-fallback-paths.nix>' -A $(nixSystem) | sed -e 's/^"//' -e 's/"$//')"; then
nixStorePath="$(prebuiltNix "$(uname -m)")"
fi
if ! nix-store -r $nixStorePath --add-root $tmpDir/nix --indirect \
--option extra-binary-caches https://cache.nixos.org/; then
echo "warning: don't know how to get latest Nix" >&2
2 changes: 1 addition & 1 deletion nixos/modules/security/duosec.nix
Original file line number Diff line number Diff line change
@@ -73,7 +73,7 @@ in
};

failmode = mkOption {
type = types.enum [ "safe" "enum" ];
type = types.enum [ "safe" "secure" ];
default = "safe";
description = ''
On service or configuration errors that prevent Duo
25 changes: 23 additions & 2 deletions nixos/modules/services/misc/gitlab.nix
Original file line number Diff line number Diff line change
@@ -22,7 +22,8 @@ let
password = cfg.databasePassword;
username = cfg.databaseUsername;
encoding = "utf8";
};
pool = cfg.databasePool;
} // cfg.extraDatabaseConfig;
};

gitalyToml = pkgs.writeText "gitaly.toml" ''
@@ -253,6 +254,18 @@ in {
description = "Gitlab database user.";
};

databasePool = mkOption {
type = types.int;
default = 5;
description = "Database connection pool size.";
};

extraDatabaseConfig = mkOption {
type = types.attrs;
default = {};
description = "Extra configuration in config/database.yml.";
};

host = mkOption {
type = types.str;
default = config.networking.hostName;
@@ -498,7 +511,15 @@ in {
systemd.services.gitaly = {
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
path = with pkgs; [ gitAndTools.git cfg.packages.gitaly.rubyEnv cfg.packages.gitaly.rubyEnv.wrappedRuby ];
path = with pkgs; [
openssh
procps # See https://gitlab.com/gitlab-org/gitaly/issues/1562
gitAndTools.git
cfg.packages.gitaly.rubyEnv
cfg.packages.gitaly.rubyEnv.wrappedRuby
gzip
bzip2
];
serviceConfig = {
Type = "simple";
User = cfg.user;
17 changes: 11 additions & 6 deletions nixos/modules/services/web-apps/matomo.nix
Original file line number Diff line number Diff line change
@@ -38,12 +38,11 @@ in {
type = types.nullOr types.str;
default = null;
example = "lighttpd";
# TODO: piwik.php might get renamed to matomo.php in future releases
description = ''
Name of the web server user that forwards requests to the ${phpSocket} fastcgi socket for matomo if the nginx
option is not used. Either this option or the nginx option is mandatory.
If you want to use another webserver than nginx, you need to set this to that server's user
and pass fastcgi requests to `index.php` and `piwik.php` to this socket.
and pass fastcgi requests to `index.php`, `matomo.php` and `piwik.php` (legacy name) to this socket.
'';
};

@@ -208,8 +207,11 @@ in {
locations."= /index.php".extraConfig = ''
fastcgi_pass unix:${phpSocket};
'';
# TODO: might get renamed to matomo.php in future versions
# allow piwik.php for tracking
# allow matomo.php for tracking
locations."= /matomo.php".extraConfig = ''
fastcgi_pass unix:${phpSocket};
'';
# allow piwik.php for tracking (deprecated name)
locations."= /piwik.php".extraConfig = ''
fastcgi_pass unix:${phpSocket};
'';
@@ -230,8 +232,11 @@ in {
locations."= /robots.txt".extraConfig = ''
return 200 "User-agent: *\nDisallow: /\n";
'';
# TODO: might get renamed to matomo.js in future versions
# let browsers cache piwik.js
# let browsers cache matomo.js
locations."= /matomo.js".extraConfig = ''
expires 1M;
'';
# let browsers cache piwik.js (deprecated name)
locations."= /piwik.js".extraConfig = ''
expires 1M;
'';
2 changes: 2 additions & 0 deletions nixos/modules/virtualisation/virtualbox-host.nix
Original file line number Diff line number Diff line change
@@ -83,6 +83,8 @@ in
};

config = mkIf cfg.enable (mkMerge [{
warnings = mkIf (config.nixpkgs.config.virtualbox.enableExtensionPack or false)
"'nixpkgs.virtualbox.enableExtensionPack' has no effect, please use 'virtualisation.virtualbox.host.enableExtensionPack'";
boot.kernelModules = [ "vboxdrv" "vboxnetadp" "vboxnetflt" ];
boot.extraModulePackages = [ kernelModules ];
environment.systemPackages = [ virtualbox ];
36 changes: 33 additions & 3 deletions nixos/tests/gitlab.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# This test runs gitlab and checks if it works

let
initialRootPassword = "notproduction";
in
import ./make-test.nix ({ pkgs, lib, ...} : with lib; {
name = "gitlab";
meta = with pkgs.stdenv.lib.maintainers; {
@@ -27,7 +30,7 @@ import ./make-test.nix ({ pkgs, lib, ...} : with lib; {
services.gitlab = {
enable = true;
databasePassword = "dbPassword";
initialRootPassword = "notproduction";
inherit initialRootPassword;
smtp.enable = true;
secrets = {
secret = "secret";
@@ -69,7 +72,27 @@ import ./make-test.nix ({ pkgs, lib, ...} : with lib; {
};
};

testScript = ''
testScript =
let
auth = pkgs.writeText "auth.json" (builtins.toJSON {
grant_type = "password";
username = "root";
password = initialRootPassword;
});

createProject = pkgs.writeText "create-project.json" (builtins.toJSON {
name = "test";
});

putFile = pkgs.writeText "put-file.json" (builtins.toJSON {
branch = "master";
author_email = "author@example.com";
author_name = "Firstname Lastname";
content = "some content";
commit_message = "create a new file";
});
in
''
$gitlab->start();
$gitlab->waitForUnit("gitaly.service");
$gitlab->waitForUnit("gitlab-workhorse.service");
@@ -78,6 +101,13 @@ import ./make-test.nix ({ pkgs, lib, ...} : with lib; {
$gitlab->waitForFile("/var/gitlab/state/tmp/sockets/gitlab.socket");
$gitlab->waitUntilSucceeds("curl -sSf http://gitlab/users/sign_in");
$gitlab->succeed("curl -isSf http://gitlab | grep -i location | grep -q http://gitlab/users/sign_in");
$gitlab->succeed("${pkgs.sudo}/bin/sudo -u gitlab -H gitlab-rake gitlab:check 1>&2")
$gitlab->succeed("${pkgs.sudo}/bin/sudo -u gitlab -H gitlab-rake gitlab:check 1>&2");
$gitlab->succeed("echo \"Authorization: Bearer \$(curl -X POST -H 'Content-Type: application/json' -d @${auth} http://gitlab/oauth/token | ${pkgs.jq}/bin/jq -r '.access_token')\" >/tmp/headers");
$gitlab->succeed("curl -X POST -H 'Content-Type: application/json' -H @/tmp/headers -d @${createProject} http://gitlab/api/v4/projects");
$gitlab->succeed("curl -X POST -H 'Content-Type: application/json' -H @/tmp/headers -d @${putFile} http://gitlab/api/v4/projects/1/repository/files/some-file.txt");
$gitlab->succeed("curl -H @/tmp/headers http://gitlab/api/v4/projects/1/repository/archive.tar.gz > /tmp/archive.tar.gz");
$gitlab->succeed("curl -H @/tmp/headers http://gitlab/api/v4/projects/1/repository/archive.tar.bz2 > /tmp/archive.tar.bz2");
$gitlab->succeed("test -s /tmp/archive.tar.gz");
$gitlab->succeed("test -s /tmp/archive.tar.bz2");
'';
})
28 changes: 23 additions & 5 deletions pkgs/applications/altcoins/monero-gui/default.nix
Original file line number Diff line number Diff line change
@@ -2,31 +2,44 @@
, makeWrapper, makeDesktopItem
, qtbase, qmake, qtmultimedia, qttools
, qtgraphicaleffects, qtdeclarative
, qtlocation, qtquickcontrols2, qtwebchannel
, qtwebengine, qtx11extras, qtxmlpatterns
, qtlocation, qtquickcontrols, qtquickcontrols2
, qtwebchannel, qtwebengine, qtx11extras, qtxmlpatterns
, monero, unbound, readline, boost, libunwind
, libsodium, pcsclite, zeromq, cppzmq, pkgconfig
, hidapi
}:

with stdenv.lib;

let
qmlPath = qmlLib: "${qmlLib}/${qtbase.qtQmlPrefix}";

qml2ImportPath = concatMapStringsSep ":" qmlPath [
qtbase.bin qtmultimedia.bin qtgraphicaleffects
qtdeclarative.bin qtlocation.bin
qtquickcontrols qtquickcontrols2.bin
qtwebchannel.bin qtwebengine.bin qtxmlpatterns
];

in

stdenv.mkDerivation rec {
name = "monero-gui-${version}";
version = "0.13.0.4";
version = "0.14.0.0";

src = fetchFromGitHub {
owner = "monero-project";
repo = "monero-gui";
rev = "v${version}";
sha256 = "142yj5s15bhm300dislq3x5inw1f37shnrd5vyj78jjcvry3wymw";
sha256 = "1l4kx2vidr7bpds43jdbwyaz0q1dy7sricpz061ff1fkappbxdh8";
};

nativeBuildInputs = [ qmake pkgconfig ];

buildInputs = [
qtbase qtmultimedia qtgraphicaleffects
qtdeclarative qtlocation qtquickcontrols2
qtdeclarative qtlocation
qtquickcontrols qtquickcontrols2
qtwebchannel qtwebengine qtx11extras
qtxmlpatterns monero unbound readline
boost libunwind libsodium pcsclite zeromq
@@ -81,6 +94,11 @@ stdenv.mkDerivation rec {
cp $src/images/appicons/$size.png \
$out/share/icons/hicolor/$size/apps/monero.png
done;
# wrap runtime dependencies
wrapProgram $out/bin/monero-wallet-gui \
--set QML2_IMPORT_PATH "${qml2ImportPath}" \
--set QT_PLUGIN_PATH "${qtbase.bin}/${qtbase.qtPluginPrefix}"
'';

meta = {
12 changes: 7 additions & 5 deletions pkgs/applications/altcoins/monero-gui/move-log-file.patch
Original file line number Diff line number Diff line change
@@ -13,15 +13,17 @@ index 79223c0..e80b317 100644
parser.addHelpOption();
parser.process(app);
diff --git a/Logger.cpp b/Logger.cpp
index 660bafc..dae24d4 100644
index 6b1daba..c357762 100644
--- a/Logger.cpp
+++ b/Logger.cpp
@@ -15,7 +15,7 @@ static const QString default_name = "monero-wallet-gui.log";
#elif defined(Q_OS_MAC)
static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0) + "/Library/Logs";
@@ -28,8 +28,8 @@ static const QString defaultLogName = "monero-wallet-gui.log";
static const QString appFolder = "Library/Logs";
#else // linux + bsd
//HomeLocation = "~"
- static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0);
- static const QString appFolder = ".bitmonero";
+ static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::CacheLocation).at(0);
+ static const QString appFolder = "bitmonero";
#endif


4 changes: 2 additions & 2 deletions pkgs/applications/altcoins/monero/default.nix
Original file line number Diff line number Diff line change
@@ -11,12 +11,12 @@ with stdenv.lib;

stdenv.mkDerivation rec {
name = "monero-${version}";
version = "0.13.0.4";
version = "0.14.0.2";

src = fetchgit {
url = "https://github.com/monero-project/monero.git";
rev = "v${version}";
sha256 = "1ambgakapijhsi1pd70vw8vvnlwa3nid944lqkbfq3wl25lmc70d";
sha256 = "1471iy6c8dfdqcmcwcp0m7fp9xl74dcm5hqlfdfi217abhawfs8k";
};

nativeBuildInputs = [ cmake pkgconfig git ];
63 changes: 63 additions & 0 deletions pkgs/applications/audio/paulstretch/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{ stdenv
, fetchFromGitHub
, audiofile
, libvorbis
, fltk
, fftw
, fftwFloat
, minixml
, pkgconfig
, libmad
, libjack2
, portaudio
, libsamplerate
}:

stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "paulstretch";
version = "2.2-2";

meta = with stdenv.lib;
{ description = "Produces high quality extreme sound stretching";
longDescription = ''
This is a program for stretching the audio. It is suitable only for
extreme sound stretching of the audio (like 50x) and for applying
special effects by "spectral smoothing" the sounds.
It can transform any sound/music to a texture.
'';
homepage = http://hypermammut.sourceforge.net/paulstretch/;
platforms = platforms.linux;
license = licenses.gpl2;
};

src = fetchFromGitHub {
owner = "paulnasca";
repo = "paulstretch_cpp";
rev = "7f5c3993abe420661ea0b808304b0e2b4b0048c5";
sha256 = "06dy03dbz1yznhsn0xvsnkpc5drzwrgxbxdx0hfpsjn2xcg0jrnc";
};

nativeBuildInputs = [ pkgconfig ];

buildInputs = [
audiofile
libvorbis
fltk
fftw
fftwFloat
minixml
libmad
libjack2
portaudio
libsamplerate
];

buildPhase = ''
bash compile_linux_fftw_jack.sh
'';

installPhase = ''
install -Dm555 ./paulstretch $out/bin/paulstretch
'';
}
8 changes: 4 additions & 4 deletions pkgs/applications/editors/vscode/default.nix
Original file line number Diff line number Diff line change
@@ -16,16 +16,16 @@ let
}.${system};

sha256 = {
"i686-linux" = "04kbx1cx40lsy9irxy1arp1rixzk49ldhg34w3llmfbx63a4hchf";
"x86_64-linux" = "1plvx0mjcbizl6iffib95p5224r9frf0mn6c5xp14p3qnrp32jhm";
"x86_64-darwin" = "14h9gs6jpxydgd1h16ybq3ifw5jc7k83yg22pw3sk6vhy7hx7pxr";
"i686-linux" = "08pyc33v2k00r3xasl3nxy090kv75l25l0kc42b5wnf46n6l50rz";
"x86_64-linux" = "1r139a8ddxw9pww773f8p10hy6kkakn9ql83ab2pg7nzy9r0kfmk";
"x86_64-darwin" = "11i5w0hdyjhjprckvcazwcj56l8bflbrgs3gzdhl8n5cjgxmxnzk";
}.${system};

archive_fmt = if system == "x86_64-darwin" then "zip" else "tar.gz";
in
stdenv.mkDerivation rec {
name = "vscode-${version}";
version = "1.31.1";
version = "1.32.2";

src = fetchurl {
name = "VSCode_${version}_${plat}.${archive_fmt}";
Loading