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: a172b1ca21c0
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: c7def568de9f
Choose a head ref
  • 18 commits
  • 9 files changed
  • 8 contributors

Commits on Apr 24, 2018

  1. grafana: 5.0.3 -> 5.0.4

    (cherry picked from commit 93561ed)
    WilliButz authored and fpletz committed Apr 24, 2018
    Copy the full SHA
    1851e5a View commit details
  2. postgresql93: 9.3.20 -> 9.3.21

    See https://www.postgresql.org/docs/9.3/static/release-9-3-21.html for
    release information
    
    (cherry picked from commit 104dfd6)
    lsix authored and fpletz committed Apr 24, 2018
    Copy the full SHA
    c3fc1bf View commit details
  3. postgresql94: 9.4.15 -> 9.4.16

    See https://www.postgresql.org/docs/9.4/static/release-9-4-16.html for
    release information
    
    (cherry picked from commit 10ef07f)
    lsix authored and fpletz committed Apr 24, 2018
    Copy the full SHA
    d1cb11d View commit details
  4. postgresql95: 9.5.10 -> 9.5.11

    See https://www.postgresql.org/docs/9.5/static/release-9-5-11.html for
    release information.
    
    (cherry picked from commit 67e45df)
    lsix authored and fpletz committed Apr 24, 2018
    Copy the full SHA
    11e9aec View commit details
  5. postgresql96: 9.6.6 -> 9.6.7

    See https://www.postgresql.org/docs/9.6/static/release-9-6-7.html for
    release information
    
    (cherry picked from commit 67f892b)
    lsix authored and fpletz committed Apr 24, 2018
    Copy the full SHA
    b720947 View commit details
  6. postgresql100: 10.1 -> 10.2

    See https://www.postgresql.org/docs/10/static/release-10-2.html for
    release information
    
    (cherry picked from commit 4080c2a)
    lsix authored and fpletz committed Apr 24, 2018
    Copy the full SHA
    847e334 View commit details
  7. postgresql93: 9.3.21 -> 9.3.22

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    (cherry picked from commit 1617fa9)
    thoughtpolice authored and fpletz committed Apr 24, 2018
    Copy the full SHA
    65c0b24 View commit details
  8. postgresql94: 9.4.16 -> 9.4.17

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    (cherry picked from commit 1e3e134)
    thoughtpolice authored and fpletz committed Apr 24, 2018
    Copy the full SHA
    c897aea View commit details
  9. postgresql95: 9.5.11 -> 9.5.12

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    (cherry picked from commit 7c9f817)
    thoughtpolice authored and fpletz committed Apr 24, 2018
    Copy the full SHA
    015fbb9 View commit details
  10. postgresql96: 9.6.7 -> 9.6.8

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    (cherry picked from commit 371721a)
    thoughtpolice authored and fpletz committed Apr 24, 2018
    Copy the full SHA
    2d346ef View commit details
  11. postgresql100: 10.2 -> 10.3

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    (cherry picked from commit 7e21fd7)
    thoughtpolice authored and fpletz committed Apr 24, 2018
    Copy the full SHA
    9ae108d View commit details
  12. pg_repack: 1.4.0.1 -> 1.4.2

    This allows pg_repack to be built against PostgreSQL 10.x.
    
    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    (cherry picked from commit 5570fc1)
    thoughtpolice authored and fpletz committed Apr 24, 2018
    Copy the full SHA
    2c54c2d View commit details
  13. xmr-stak: doesn't build with gcc7 if cuda is enabled

    (cherry picked from commit 0520634)
    fpletz committed Apr 24, 2018
    Copy the full SHA
    1046a96 View commit details
  14. openarena: needs libcurl for fast assets downloads

    (cherry picked from commit b6dbdaa)
    fpletz committed Apr 24, 2018
    Copy the full SHA
    e0d70d7 View commit details
  15. xmr-stak: 2.3.0 -> 2.4.3

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/xmr-stak/versions.
    
    These checks were done:
    
    - built on NixOS
    - ran ‘/nix/store/xdp6rb1bvdmpkd77vbqq8dq175dfvrvl-xmr-stak-2.4.3/bin/xmr-stak -h’ got 0 exit code
    - ran ‘/nix/store/xdp6rb1bvdmpkd77vbqq8dq175dfvrvl-xmr-stak-2.4.3/bin/xmr-stak --help’ got 0 exit code
    - found 2.4.3 with grep in /nix/store/xdp6rb1bvdmpkd77vbqq8dq175dfvrvl-xmr-stak-2.4.3
    - directory tree listing: https://gist.github.com/ba044f08ae439ad36ac7e143f14e0fb0
    
    (cherry picked from commit 42f2bd3)
    R. RyanTM authored and fpletz committed Apr 24, 2018
    Copy the full SHA
    02af756 View commit details
  16. Revert "nixos/tests/keymap: improve keymap tests"

    This reverts commit d5d2e66.
    Discussion in #39400
    Sarah Brofeldt committed Apr 24, 2018
    Copy the full SHA
    d3881bf View commit details
  17. xdot: disable for python 2.x

    It just fails at runtime otherwise.
    
    (cherry picked from commit 701f222)
    lheckemann authored and Mic92 committed Apr 24, 2018
    Copy the full SHA
    33913f2 View commit details
  18. eclipse-plugin-spotbugs: 3.1.2 -> 3.1.3

    Also switch to using zipped update site provided on GitHub.
    
    (cherry picked from commit f54a999)
    rycee committed Apr 24, 2018
    Copy the full SHA
    c7def56 View commit details
127 changes: 84 additions & 43 deletions nixos/tests/keymap.nix
Original file line number Diff line number Diff line change
@@ -3,75 +3,116 @@
with import ../lib/testing.nix { inherit system; };

let
readyFile = "/tmp/readerReady";
resultFile = "/tmp/readerResult";

testReader = pkgs.writeScript "test-input-reader" ''
#!${pkgs.stdenv.shell}
rm -f ${resultFile}
logger "testReader: START: Waiting for $1 characters, expecting '$2'."
touch ${readyFile}
read -r -N $1 chars
rm -f ${readyFile}
if [ "$chars" == "$2" ]; then
logger -s "testReader: PASS: Got '$2' as expected." 2>${resultFile}
else
logger -s "testReader: FAIL: Expected '$2' but got '$chars'." 2>${resultFile}
fi
readInput() {
touch /tmp/reader.ready
echo "Waiting for '$1' to be typed"
read -r -n1 c
if [ "$c" = "$2" ]; then
echo "SUCCESS: Got back '$c' as expected."
echo 0 >&2
else
echo "FAIL: Expected '$2' but got '$c' instead."
echo 1 >&2
fi
}
main() {
error=0
while [ $# -gt 0 ]; do
ret="$((readInput "$2" "$3" | systemd-cat -t "$1") 2>&1)"
if [ $ret -ne 0 ]; then error=1; fi
shift 3
done
return $error
}
main "$@"; echo -n $? > /tmp/reader.exit
'';

mkReaderInput = testname: { qwerty, expect }: with pkgs.lib; let
lq = length qwerty;
le = length expect;
msg = "`qwerty' (${lq}) and `expect' (${le}) lists"
+ " need to be of the same length!";
result = flatten (zipListsWith (a: b: [testname a b]) qwerty expect);
in if lq != le then throw msg else result;

mkKeyboardTest = layout: { extraConfig ? {}, tests }: with pkgs.lib; let
combinedTests = foldAttrs (acc: val: acc ++ val) [] (builtins.attrValues tests);
readerInput = flatten (mapAttrsToList mkReaderInput tests);
perlStr = val: "'${escape ["'" "\\"] val}'";
lq = length combinedTests.qwerty;
le = length combinedTests.expect;
msg = "length mismatch between qwerty (${toString lq}) and expect (${toString le}) lists!";
send = concatMapStringsSep ", " perlStr combinedTests.qwerty;
expect = if (lq == le) then concatStrings combinedTests.expect else throw msg;

perlReaderInput = concatMapStringsSep ", " perlStr readerInput;
in makeTest {
name = "keymap-${layout}";

machine.services.xserver.desktopManager.xterm.enable = false;
machine.i18n.consoleKeyMap = mkOverride 900 layout;
machine.services.xserver.layout = mkOverride 900 layout;
machine.imports = [ ./common/x11.nix extraConfig ];
machine.services.xserver.displayManager.slim = {
enable = true;

# Use a custom theme in order to get best OCR results
theme = pkgs.runCommand "slim-theme-ocr" {
nativeBuildInputs = [ pkgs.imagemagick ];
} ''
mkdir "$out"
convert -size 1x1 xc:white "$out/background.jpg"
convert -size 200x100 xc:white "$out/panel.jpg"
cat > "$out/slim.theme" <<EOF
background_color #ffffff
background_style tile
input_fgcolor #000000
msg_color #000000
session_color #000000
session_font Verdana:size=16:bold
username_msg Username:
username_font Verdana:size=16:bold
username_color #000000
username_x 50%
username_y 40%
password_msg Password:
password_x 50%
password_y 40%
EOF
'';
};

testScript = ''
sub waitCatAndDelete ($) {
return $machine->succeed(
"for i in \$(seq 600); do if [ -e '$_[0]' ]; then ".
"cat '$_[0]' && rm -f '$_[0]' && exit 0; ".
"fi; sleep 0.1; done; echo timed out after 60 seconds >&2; exit 1"
);
};
sub mkTest ($$) {
my ($desc, $cmd) = @_;
my @testdata = (${perlReaderInput});
my $shellTestdata = join ' ', map { "'".s/'/'\\'''/gr."'" } @testdata;
subtest $desc, sub {
# prepare and start testReader
$machine->execute("rm -f ${readyFile} ${resultFile}");
$machine->succeed("$cmd ${testReader} ${toString le} ".q(${escapeShellArg expect} & ));
if ($desc eq "Xorg keymap") {
# make sure the xterm window is open and has focus
$machine->waitForWindow(qr/testterm/);
$machine->succeed("${pkgs.xdotool}/bin/xdotool search --name testterm windowactivate --sync");
}
# wait for reader to be ready
$machine->waitForFile("${readyFile}");
$machine->sleep(1);
# send all keys
foreach ((${send})) { $machine->sendKeys($_); };
# wait for result and check
$machine->waitForFile("${resultFile}");
$machine->succeed("grep -q 'PASS:' ${resultFile}");
$machine->succeed("$cmd ${testReader} $shellTestdata &");
while (my ($testname, $qwerty, $expect) = splice(@testdata, 0, 3)) {
waitCatAndDelete "/tmp/reader.ready";
$machine->sendKeys($qwerty);
};
my $exitcode = waitCatAndDelete "/tmp/reader.exit";
die "tests for $desc failed" if $exitcode ne 0;
};
};
}
$machine->waitForX;
mkTest "VT keymap", "openvt -sw --";
mkTest "Xorg keymap", "DISPLAY=:0 xterm -title testterm -fullscreen -e";
mkTest "Xorg keymap", "DISPLAY=:0 xterm -fullscreen -e";
'';
};

15 changes: 5 additions & 10 deletions pkgs/applications/editors/eclipse/plugins.nix
Original file line number Diff line number Diff line change
@@ -507,18 +507,13 @@ rec {
};
};

spotbugs = buildEclipsePlugin rec {
spotbugs = buildEclipseUpdateSite rec {
name = "spotbugs-${version}";
version = "3.1.2.r201802250230-59118d9";
version = "3.1.3";

srcFeature = fetchurl {
url = "https://spotbugs.github.io/eclipse/features/com.github.spotbugs.plugin.eclipse_${version}.jar";
sha256 = "1p0pz7znpfi5h1wr60sl8clkpd7rzkh7krmc0nxc6w43gkgkg9h4";
};

srcPlugin = fetchurl {
url = "https://spotbugs.github.io/eclipse/plugins/com.github.spotbugs.plugin.eclipse_${version}.jar";
sha256 = "1z3jjbcjif4qip1gx2dhfcm9fyhps96ms7z3ngbdcakgw7wai9v4";
src = fetchzip {
url = "https://github.com/spotbugs/spotbugs/releases/download/${version}/eclipsePlugin.zip";
sha256 = "01zrmk497bxzqgwgbpsvi5iz5qk9b4q949h4918abm54zvkgndlg";
};

meta = with stdenv.lib; {
13 changes: 9 additions & 4 deletions pkgs/applications/misc/xmr-stak/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, openssl
{ stdenv, stdenvGcc6, lib
, fetchFromGitHub, cmake, libuv, libmicrohttpd, openssl
, opencl-headers, ocl-icd, hwloc, cudatoolkit
, devDonationLevel ? "0.0"
, cudaSupport ? false
, openclSupport ? true
}:

stdenv.mkDerivation rec {
let
stdenv' = if cudaSupport then stdenvGcc6 else stdenv;
in

stdenv'.mkDerivation rec {
name = "xmr-stak-${version}";
version = "2.3.0";
version = "2.4.3";

src = fetchFromGitHub {
owner = "fireice-uk";
repo = "xmr-stak";
rev = "${version}";
sha256 = "1iisy73pi4xx3vmqvy6whdzb566jqyjx4pdyx0g35qjj8giflpc8";
sha256 = "0plks4yyd9gjnfg7sfsgsvdgczkbghf5xjwb8bzv01f0fndn10r1";
};

NIX_CFLAGS_COMPILE = "-O3";
4 changes: 3 additions & 1 deletion pkgs/development/python-modules/xdot/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi
{ lib, buildPythonPackage, fetchPypi, isPy3k
, wrapGAppsHook, gobjectIntrospection, pygobject3, graphviz, gnome3 }:

buildPythonPackage rec {
@@ -10,6 +10,8 @@ buildPythonPackage rec {
sha256 = "01v9vmgdxz1q2m2vq2b4aqx4ycw7grc0l4is673ygvyg9rk02dx3";
};

disabled = !isPy3k;

nativeBuildInputs = [ wrapGAppsHook ];
propagatedBuildInputs = [ gobjectIntrospection pygobject3 graphviz gnome3.gtk ];

4 changes: 2 additions & 2 deletions pkgs/games/openarena/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ fetchurl, makeWrapper, patchelf, pkgs, stdenv, SDL, libogg, libvorbis }:
{ fetchurl, makeWrapper, patchelf, pkgs, stdenv, SDL, libogg, libvorbis, curl }:

stdenv.mkDerivation rec {
name = "openarena-${version}";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
installPhase = let
gameDir = "$out/openarena-$version";
interpreter = "$(< \"$NIX_CC/nix-support/dynamic-linker\")";
libPath = stdenv.lib.makeLibraryPath [ SDL libogg libvorbis ];
libPath = stdenv.lib.makeLibraryPath [ SDL libogg libvorbis curl ];
in ''
mkdir -pv $out/bin
cd $out
6 changes: 3 additions & 3 deletions pkgs/servers/monitoring/grafana/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{ lib, buildGoPackage, fetchurl, fetchFromGitHub, phantomjs2 }:

buildGoPackage rec {
version = "5.0.3";
version = "5.0.4";
name = "grafana-${version}";
goPackagePath = "github.com/grafana/grafana";

src = fetchFromGitHub {
rev = "v${version}";
owner = "grafana";
repo = "grafana";
sha256 = "0508dvkanrfrvdnddjsaz8qm3qbgavznia5hqr8zx3qvq4789hj2";
sha256 = "18f69985a5j6fd2ax6z50yfss70phdh1vwyx0z69j145zac3sf90";
};

srcStatic = fetchurl {
url = "https://grafana-releases.s3.amazonaws.com/release/grafana-${version}.linux-x64.tar.gz";
sha256 = "0dzb93vx72sm6iri6c96k3a15zn8mp26pd2r78m6k3nhg8rsrqmm";
sha256 = "0xdpqf8n3ds0g7nhbiwahhdj0hfc4biz69rhkl48vm31idlr92sc";
};

preBuild = "export GOPATH=$GOPATH:$NIX_BUILD_TOP/go/src/${goPackagePath}/Godeps/_workspace";
20 changes: 10 additions & 10 deletions pkgs/servers/sql/postgresql/default.nix
Original file line number Diff line number Diff line change
@@ -93,33 +93,33 @@ let
in {

postgresql93 = common {
version = "9.3.20";
version = "9.3.22";
psqlSchema = "9.3";
sha256 = "1jp6lac4b0q6hb28yrdsl0ymzn75gg59hvp5zasarf3mf3b8l4zb";
sha256 = "06p9rk2bav41ybp8ra1bpf44avw9kl5s1wyql21n5awvlm5fs60v";
};

postgresql94 = common {
version = "9.4.15";
version = "9.4.17";
psqlSchema = "9.4";
sha256 = "1i5c67gg4fj38hk07h6w6m4mqak84bhnblqsjbpiamg4x33v7gqj";
sha256 = "1inpkwbr2xappz3kq3jr3hsn6mwn167nijcx406q8aq56p9hqcks";
};

postgresql95 = common {
version = "9.5.10";
version = "9.5.12";
psqlSchema = "9.5";
sha256 = "10gjfn16bhzkmlqfsn384w49db0j39bg3n4majwxdpjd17g7lpcl";
sha256 = "167nlrpsnqz63gafgn21j4yc2f5g1mpfkz8qxjxk2xs6crf6zs02";
};

postgresql96 = common {
version = "9.6.6";
version = "9.6.8";
psqlSchema = "9.6";
sha256 = "0m417h30s18rwa7yzkqqcdb22ifpcda2fpg2cyx8bxvjp3ydz71r";
sha256 = "0w7bwf19wbdd3jjbjv03cnx56qka4801srcbsayk9v792awv7zga";
};

postgresql100 = common {
version = "10.1";
version = "10.3";
psqlSchema = "10.0";
sha256 = "04z7lm4h94625vbncwv98svycqr942n3q47ailqaczkszqjlxjrw";
sha256 = "06lkcwsf851z49zqcws5yc77s2yrbaazf2nvbk38hpp31rw6i8kf";
};

}
13 changes: 6 additions & 7 deletions pkgs/servers/sql/postgresql/pg_repack/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{ stdenv, fetchFromGitHub, postgresql, openssl, zlib, readline }:

stdenv.mkDerivation rec {
name = "pg_repack-${version}.1";
version = "1.4.0";
rev = "ver_${version}.1";
name = "pg_repack-${version}";
version = "1.4.2";

buildInputs = [ postgresql openssl zlib readline ];

src = fetchFromGitHub {
owner = "reorg";
repo = "pg_repack";
inherit rev;
sha256 = "1ym2dlhgcizyy4p5dcfw7kadrq6g34pv3liyfx604irprzhw9k74";
owner = "reorg";
repo = "pg_repack";
rev = "refs/tags/ver_${version}";
sha256 = "1yv5x7dgiv1miazbngkrkdbc2zpwklj6nlligghjvv83bcl8969q";
};

installPhase = ''
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -16649,6 +16649,7 @@ with pkgs;
};

xmr-stak = callPackage ../applications/misc/xmr-stak {
stdenvGcc6 = overrideCC stdenv gcc6;
hwloc = hwloc-nox;
};