From 6392fb3d6ca585c4b4da6a42a93466ca9d19c1e3 Mon Sep 17 00:00:00 2001 From: Guillaume Bouchard Date: Sun, 15 Apr 2018 10:49:10 +0200 Subject: [PATCH 1/9] pysensors: init at 2017-07-13 --- .../python-modules/pysensors/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/pysensors/default.nix diff --git a/pkgs/development/python-modules/pysensors/default.nix b/pkgs/development/python-modules/pysensors/default.nix new file mode 100644 index 00000000000..c891140827e --- /dev/null +++ b/pkgs/development/python-modules/pysensors/default.nix @@ -0,0 +1,32 @@ +{ stdenv, buildPythonPackage, python, fetchFromGitHub, lm_sensors }: +buildPythonPackage rec { + version = "2017-07-13"; + pname = "pysensors"; + + # note that https://pypi.org/project/PySensors/ is a different project + src = fetchFromGitHub { + owner = "bastienleonard"; + repo = "pysensors"; + rev = "ef46fc8eb181ecb8ad09b3d80bc002d23d9e26b3"; + sha256 = "1xvbxnkz55fk5fpr514263c7s7s9r8hgrw4ybfaj5a0mligmmrfm"; + }; + + buildInputs = [ lm_sensors ]; + + # Tests are disable because they fail on `aarch64-linux`, probably + # due to sandboxing + doCheck = false; + + checkPhase = '' + cd tests + ${python.interpreter} -m unittest discover + ''; + + meta = with stdenv.lib; { + maintainers = with maintainers; [ guibou ]; + description = "Easy hardware health monitoring in Python for Linux systems"; + homepage = http://pysensors.readthedocs.org; + license = licenses.bsd2; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e572eaefb2e..d6a8fb0ffaa 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18271,6 +18271,8 @@ EOF pyspark = callPackage ../development/python-modules/pyspark { }; + pysensors = callPackage ../development/python-modules/pysensors { }; + sseclient = callPackage ../development/python-modules/sseclient { }; textacy = callPackage ../development/python-modules/textacy { }; From 08eba842b071971dd42df24e12160a1d78f7c3b4 Mon Sep 17 00:00:00 2001 From: Tristan Helmich Date: Mon, 7 May 2018 19:28:13 +0200 Subject: [PATCH 2/9] graylog: 2.4.3 -> 2.4.4 --- pkgs/tools/misc/graylog/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/graylog/default.nix b/pkgs/tools/misc/graylog/default.nix index b9945a3afd3..cc7addb668e 100644 --- a/pkgs/tools/misc/graylog/default.nix +++ b/pkgs/tools/misc/graylog/default.nix @@ -1,12 +1,12 @@ { stdenv, fetchurl }: stdenv.mkDerivation rec { - version = "2.4.3"; + version = "2.4.4"; name = "graylog-${version}"; src = fetchurl { url = "https://packages.graylog2.org/releases/graylog/graylog-${version}.tgz"; - sha256 = "0kwgg9m9sqzl4y2ri69fpi7w9961psbmfdq3avjsbgbs60ly1hn6"; + sha256 = "0wiqwwsy306hr7zn57f5hvh8wvcc2q46x0hdlabi0n9m44wk993i"; }; dontBuild = true; From 9817b4aa5f6a1a2ee44866bd77ef72132a0b8891 Mon Sep 17 00:00:00 2001 From: Tristan Helmich Date: Tue, 8 May 2018 15:48:18 +0200 Subject: [PATCH 3/9] graylog: wrap graylogctl Wrapper ensures graylogctl script can find java --- pkgs/tools/misc/graylog/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/graylog/default.nix b/pkgs/tools/misc/graylog/default.nix index cc7addb668e..f79be961378 100644 --- a/pkgs/tools/misc/graylog/default.nix +++ b/pkgs/tools/misc/graylog/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, makeWrapper, jre_headless }: stdenv.mkDerivation rec { version = "2.4.4"; @@ -12,9 +12,13 @@ stdenv.mkDerivation rec { dontBuild = true; dontStrip = true; + buildInputs = [ makeWrapper ]; + makeWrapperArgs = [ "--prefix" "PATH" ":" "${jre_headless}/bin" ]; + installPhase = '' mkdir -p $out cp -r {graylog.jar,lib,bin,plugin,data} $out + wrapProgram $out/bin/graylogctl $makeWrapperArgs ''; meta = with stdenv.lib; { From f8d047da50dbc7d012a8d322b4d5e5a0b639733c Mon Sep 17 00:00:00 2001 From: xeji <36407913+xeji@users.noreply.github.com> Date: Thu, 10 May 2018 19:36:58 +0200 Subject: [PATCH 4/9] nixos/release-combined.nix: make tests consistent (#40131) ... with release-small.nix Tests for small channel should be a subset of tests for full channel. --- nixos/release-combined.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/release-combined.nix b/nixos/release-combined.nix index e010b532a68..deb28835968 100644 --- a/nixos/release-combined.nix +++ b/nixos/release-combined.nix @@ -58,6 +58,8 @@ in rec { nixos.ova.x86_64-linux or [] #(all nixos.tests.containers) + (all nixos.tests.containers-imperative) + (all nixos.tests.containers-ipv4) nixos.tests.chromium.x86_64-linux or [] (all nixos.tests.firefox) (all nixos.tests.firewall) @@ -98,6 +100,7 @@ in rec { (all nixos.tests.misc) (all nixos.tests.mutableUsers) (all nixos.tests.nat.firewall) + (all nixos.tests.nat.firewall-conntrack) (all nixos.tests.nat.standalone) (all nixos.tests.networking.scripted.loopback) (all nixos.tests.networking.scripted.static) @@ -112,6 +115,7 @@ in rec { (all nixos.tests.nfs4) (all nixos.tests.openssh) (all nixos.tests.php-pcre) + (all nixos.tests.predictable-interface-names) (all nixos.tests.printing) (all nixos.tests.proxy) (all nixos.tests.sddm.default) From 558f4b3368b83844837fccd58e9e89490911a1b3 Mon Sep 17 00:00:00 2001 From: xeji <36407913+xeji@users.noreply.github.com> Date: Thu, 10 May 2018 19:38:02 +0200 Subject: [PATCH 5/9] nixos/tests/plotinus: fix non-deterministic failure (#40239) Test failed sometimes, likely because a window didn't get focus. --- nixos/tests/plotinus.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nixos/tests/plotinus.nix b/nixos/tests/plotinus.nix index 557d65f7960..9058c59c92d 100644 --- a/nixos/tests/plotinus.nix +++ b/nixos/tests/plotinus.nix @@ -15,11 +15,11 @@ import ./make-test.nix ({ pkgs, ... }: { testScript = '' $machine->waitForX; - $machine->execute("xterm -e 'gnome-calculator' &"); - $machine->waitForWindow(qr/Calculator/); - $machine->execute("xdotool key ctrl+shift+p"); - $machine->sleep(1); # wait for the popup - $machine->execute("xdotool key p r e f e r e n c e s Return"); + $machine->succeed("gnome-calculator &"); + $machine->waitForWindow(qr/gnome-calculator/); + $machine->succeed("xdotool search --sync --onlyvisible --class gnome-calculator windowfocus --sync key ctrl+shift+p"); + $machine->sleep(5); # wait for the popup + $machine->succeed("xdotool key --delay 100 p r e f e r e n c e s Return"); $machine->waitForWindow(qr/Preferences/); $machine->screenshot("screen"); ''; From 461903974e2510fe3e7a5cd82a96c3909501ae14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Thu, 10 May 2018 14:46:32 -0300 Subject: [PATCH 6/9] theme-jade1: init at 3.2 --- pkgs/misc/themes/jade1/default.nix | 28 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 6 ++++-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 pkgs/misc/themes/jade1/default.nix diff --git a/pkgs/misc/themes/jade1/default.nix b/pkgs/misc/themes/jade1/default.nix new file mode 100644 index 00000000000..9870b3fefeb --- /dev/null +++ b/pkgs/misc/themes/jade1/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, gtk-engine-murrine }: + +stdenv.mkDerivation rec { + name = "theme-jade1-${version}"; + version = "3.2"; + + src = fetchFromGitHub { + owner = "madmaxms"; + repo = "theme-jade-1"; + rev = "v${version}"; + sha256 = "0lf8cawn2s2x1b9af0cznhqzx3dsr8h18srcwjz7af3y5daxf311"; + }; + + propagatedUserEnvPkgs = [ gtk-engine-murrine ]; + + installPhase = '' + mkdir -p $out/share/themes + cp -a Jade-1 $out/share/themes + ''; + + meta = with stdenv.lib; { + description = "A fork of the original Linux Mint theme with dark menus, more intensive green and some other modifications"; + homepage = https://github.com/madmaxms/theme-jade-1; + license = with licenses; [ gpl3 ]; + platforms = platforms.linux; + maintainers = [ maintainers.romildo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eb37b8a1744..6e445747be1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19806,10 +19806,12 @@ with pkgs; numix-sx-gtk-theme = callPackage ../misc/themes/numix-sx { }; - theme-obsidian2 = callPackage ../misc/themes/obsidian2 { }; - onestepback = callPackage ../misc/themes/onestepback { }; + theme-jade1 = callPackage ../misc/themes/jade1 { }; + + theme-obsidian2 = callPackage ../misc/themes/obsidian2 { }; + theme-vertex = callPackage ../misc/themes/vertex { }; rox-filer = callPackage ../desktops/rox/rox-filer { From 8db05ade402e2baac59078ea73fc689bc4b3b1c7 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 10 May 2018 14:11:23 -0400 Subject: [PATCH 7/9] gnused: Remove crossAttrs Use a cleaner help2man trick from coreutils --- pkgs/tools/text/gnused/default.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/text/gnused/default.nix b/pkgs/tools/text/gnused/default.nix index 72d632533ff..b463a92ba74 100644 --- a/pkgs/tools/text/gnused/default.nix +++ b/pkgs/tools/text/gnused/default.nix @@ -14,13 +14,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ perl ]; preConfigure = "patchShebangs ./build-aux/help2man"; - crossAttrs = { - # The tarball ships with a fine prebuilt manpage, but the make rules try to rebuild it, - # which won't work when cross compiling as help2man needs to execute the binaries. - postConfigure = '' - sed -i Makefile -e 's|doc/sed\.1:|dummy:|' - ''; - }; + # Prevents attempts of running 'help2man' on cross-built binaries. + PERL = if stdenv.hostPlatform == stdenv.buildPlatform then null else "missing"; meta = { homepage = http://www.gnu.org/software/sed/; From 58b2e875c212f10129a2320f38f03988dee13bed Mon Sep 17 00:00:00 2001 From: John Ericson Date: Wed, 9 May 2018 18:50:51 -0400 Subject: [PATCH 8/9] lib/systems: Prohibit "gnu" ABI (*-gnu) with 32-bit ARM It is ambiguous, and therefore banned within GCC. --- lib/systems/default.nix | 7 +++++++ lib/systems/parse.nix | 12 ++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/lib/systems/default.nix b/lib/systems/default.nix index 0e1a10c1f64..ee4c29660a5 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -50,5 +50,12 @@ rec { } // mapAttrs (n: v: v final.parsed) inspect.predicates // args; in assert final.useAndroidPrebuilt -> final.isAndroid; + assert lib.foldl + (pass: { assertion, message }: + if assertion final + then pass + else throw message) + true + (final.parsed.abi.assertions or []); final; } diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix index 16d657a5435..08f2fb445de 100644 --- a/lib/systems/parse.nix +++ b/lib/systems/parse.nix @@ -192,7 +192,15 @@ rec { abis = setTypes types.openAbi { android = {}; cygnus = {}; - gnu = {}; + gnu = { + assertions = [ + { assertion = platform: !platform.isAarch32; + message = '' + The "gnu" ABI is ambiguous on 32-bit ARM. Use "gnueabi" or "gnueabihf" instead. + ''; + } + ]; + }; msvc = {}; eabi = {}; androideabi = {}; @@ -270,7 +278,7 @@ rec { kernel = getKernel args.kernel; abi = /**/ if args ? abi then getAbi args.abi - else if isLinux parsed then abis.gnu + else if isLinux parsed then (if isAarch32 parsed then abis.gnueabi else abis.gnu) else if isWindows parsed then abis.gnu else abis.unknown; }; From cc083fa9070cdef426457142a2b38c2708547d51 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Thu, 10 May 2018 21:41:40 +0200 Subject: [PATCH 9/9] pytrainer: 1.12.0 -> 1.12.1 --- pkgs/applications/misc/pytrainer/default.nix | 4 ++-- pkgs/applications/misc/pytrainer/fix-test-tz.patch | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/misc/pytrainer/default.nix b/pkgs/applications/misc/pytrainer/default.nix index dcbd14198f7..cdeca96568d 100644 --- a/pkgs/applications/misc/pytrainer/default.nix +++ b/pkgs/applications/misc/pytrainer/default.nix @@ -14,13 +14,13 @@ in python.pkgs.buildPythonApplication rec { name = "pytrainer-${version}"; - version = "1.12.0"; + version = "1.12.1"; src = fetchFromGitHub { owner = "pytrainer"; repo = "pytrainer"; rev = "v${version}"; - sha256 = "09pfddjaqdpy3r27h21xvsvh04sb8hppinskxlahdqb3vjzkr581"; + sha256 = "0rzf8kks96qzlknh6g3b9pjq04j7qk6rmz58scp7sck8xz9rjbwx"; }; namePrefix = ""; diff --git a/pkgs/applications/misc/pytrainer/fix-test-tz.patch b/pkgs/applications/misc/pytrainer/fix-test-tz.patch index 761064077a9..ca487576901 100644 --- a/pkgs/applications/misc/pytrainer/fix-test-tz.patch +++ b/pkgs/applications/misc/pytrainer/fix-test-tz.patch @@ -30,13 +30,16 @@ diff -Nurp source.orig/pytrainer/test/imports/test_garmintcxv2.py source/pytrain + summary = [(0, True, '2012-10-14T10:02:42', '10.12', '00:39:51', 'Running')] activity = Activity(date_time_utc='2012-10-14T10:02:42Z', sport_id='1') self.ddbb.session.add(activity) - self.ddbb.session.commit() + self.ddbb.session.commit( diff -Nurp source.orig/pytrainer/test/lib/test_date.py source/pytrainer/test/lib/test_date.py ---- source.orig/pytrainer/test/lib/test_date.py 2018-02-27 22:15:32.079243364 +0100 -+++ source/pytrainer/test/lib/test_date.py 2018-02-27 22:16:33.936867052 +0100 -@@ -45,4 +45,4 @@ class DateFunctionTest(unittest.TestCase +--- source.orig/pytrainer/test/lib/test_date.py 2018-05-10 21:15:22.196275555 +0200 ++++ source/pytrainer/test/lib/test_date.py 2018-05-10 21:22:43.647870401 +0200 +@@ -47,7 +47,7 @@ class DateFunctionTest(unittest.TestCase def test_getDateTime(self): utctime, localtime = getDateTime('Tue Nov 24 17:29:05 UTC 2015') self.assertEqual(datetime.datetime(2015, 11, 24, 17, 29, 5, tzinfo=tzutc()), utctime) - self.assertEqual(datetime.datetime(2015, 11, 24, 19, 29, 5, tzinfo=tzlocal()), localtime) + self.assertEqual(datetime.datetime(2015, 11, 24, 17, 29, 5, tzinfo=tzlocal()), localtime) + + class DateRangeTest(unittest.TestCase): +