From 3332da283ab2422a438f57165772b4daaf25a1d5 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Thu, 14 Sep 2023 11:32:40 +0200 Subject: [PATCH 01/14] maintainers: add aviallon --- maintainers/maintainer-list.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 12ea34f0fcb3..ab0ec592d99a 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -1743,6 +1743,15 @@ githubId = 1222; name = "Aaron VonderHaar"; }; + aviallon = { + email = "antoine-nixos@lesviallon.fr"; + github = "aviallon"; + githubId = 7479436; + name = "Antoine Viallon"; + keys = [{ + fingerprint = "4AC4 A28D 7208 FC6F 2B51 5EA9 D126 B13A B555 E16F"; + }]; + }; avitex = { email = "theavitex@gmail.com"; github = "avitex"; From c45be3d879f245c6a2b4947ef169268bb8637934 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 24 Sep 2023 06:48:42 +0000 Subject: [PATCH 02/14] tutanota-desktop: 3.118.7 -> 3.118.8 --- .../networking/mailreaders/tutanota-desktop/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/mailreaders/tutanota-desktop/default.nix b/pkgs/applications/networking/mailreaders/tutanota-desktop/default.nix index 1a7eaf22ae05..d7ee8754c91c 100644 --- a/pkgs/applications/networking/mailreaders/tutanota-desktop/default.nix +++ b/pkgs/applications/networking/mailreaders/tutanota-desktop/default.nix @@ -3,12 +3,12 @@ electron, libsecret }: stdenv.mkDerivation rec { pname = "tutanota-desktop"; - version = "3.118.7"; + version = "3.118.8"; src = fetchurl { url = "https://github.com/tutao/tutanota/releases/download/tutanota-desktop-release-${version}/${pname}-${version}-unpacked-linux.tar.gz"; name = "tutanota-desktop-${version}.tar.gz"; - hash = "sha256-e62Wn8rfjX5HmlA3+D6NkZNw2jzx1fYEHC9R1tioQhc="; + hash = "sha256-12R8g5U8p2lXNaSeJiCvEb6AgCC40jDXDKO8kyEvM6w="; }; nativeBuildInputs = [ From a92613918693b0d8e11cbe24d525319576bc7a20 Mon Sep 17 00:00:00 2001 From: nviets Date: Thu, 14 Sep 2023 00:06:47 -0500 Subject: [PATCH 03/14] xgboost: 1.7.6 -> 2.0.0 --- pkgs/development/libraries/xgboost/default.nix | 5 +++-- pkgs/development/python-modules/xgboost/default.nix | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/xgboost/default.nix b/pkgs/development/libraries/xgboost/default.nix index 31d064c2af6d..49d042886b73 100644 --- a/pkgs/development/libraries/xgboost/default.nix +++ b/pkgs/development/libraries/xgboost/default.nix @@ -45,14 +45,14 @@ stdenv.mkDerivation rec { # in \ # rWrapper.override{ packages = [ xgb ]; }" pname = lib.optionalString rLibrary "r-" + pnameBase; - version = "1.7.6"; + version = "2.0.0"; src = fetchFromGitHub { owner = "dmlc"; repo = pnameBase; rev = "v${version}"; fetchSubmodules = true; - hash = "sha256-i7smd56rLbNY0qXysq818VYWYbjrnFbyIjQkIgf9aOs="; + hash = "sha256-HKITioCvBZHZWKFWwe9KbrFP+Nbz8adbZJvQiqApjUQ="; }; nativeBuildInputs = [ cmake ] @@ -144,6 +144,7 @@ stdenv.mkDerivation rec { homepage = "https://github.com/dmlc/xgboost"; license = licenses.asl20; platforms = platforms.unix; + broken = stdenv.isDarwin; maintainers = with maintainers; [ abbradar nviets ]; }; } diff --git a/pkgs/development/python-modules/xgboost/default.nix b/pkgs/development/python-modules/xgboost/default.nix index 5d0b3b561221..2a65992e048d 100644 --- a/pkgs/development/python-modules/xgboost/default.nix +++ b/pkgs/development/python-modules/xgboost/default.nix @@ -4,17 +4,19 @@ , cmake , numpy , scipy +, hatchling , stdenv , xgboost }: buildPythonPackage { pname = "xgboost"; + format = "pyproject"; inherit (xgboost) version src meta; disabled = pythonOlder "3.8"; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ cmake hatchling ]; buildInputs = [ xgboost ]; propagatedBuildInputs = [ numpy scipy ]; From 80ab54b3afb73a3563f1d5bf48269191f1a7c52e Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 25 Sep 2023 09:17:11 +0200 Subject: [PATCH 04/14] python3Packages.qtile: 0.22.1 -> 0.23.0 - Updated version and hash - Added pulsectl-asyncio dependency and removed pulseaudio as those FFI bindings are now handled by pulsectl-asyncio - Added libdrm and pixman patches - Added xcbutilwm otherwise we get a header not found - Removed wlroots 0.15 pin as qtile now uses wlroots 0.16 --- pkgs/development/python-modules/qtile/default.nix | 15 +++++++++++---- pkgs/top-level/python-packages.nix | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/qtile/default.nix b/pkgs/development/python-modules/qtile/default.nix index 1d8aaa55ba6e..dd45055c420d 100644 --- a/pkgs/development/python-modules/qtile/default.nix +++ b/pkgs/development/python-modules/qtile/default.nix @@ -5,13 +5,15 @@ , dbus-next , dbus-python , glib +, libdrm , libinput , libxkbcommon , mpd2 , pango +, pixman , pkg-config , psutil -, pulseaudio +, pulsectl-asyncio , pygobject3 , python-dateutil , pywayland @@ -22,19 +24,20 @@ , wayland , wlroots , xcbutilcursor +, xcbutilwm , xcffib , xkbcommon }: buildPythonPackage rec { pname = "qtile"; - version = "0.22.1"; + version = "0.23.0"; src = fetchFromGitHub { owner = "qtile"; repo = "qtile"; rev = "v${version}"; - hash = "sha256-HOyExVKOqZ4OeNM1/AiXQeiUV+EbSJLEjWEibm07ff8="; + hash = "sha256-WxnpkKqYGGEsFTt/1iCSiCzdESJP6HFJ6BztaMsMbYo="; }; patches = [ @@ -48,6 +51,9 @@ buildPythonPackage rec { --replace libpango-1.0.so.0 ${pango.out}/lib/libpango-1.0.so.0 substituteInPlace libqtile/backend/x11/xcursors.py \ --replace libxcb-cursor.so.0 ${xcbutilcursor.out}/lib/libxcb-cursor.so.0 + substituteInPlace libqtile/backend/wayland/cffi/build.py \ + --replace /usr/include/pixman-1 ${lib.getDev pixman}/include \ + --replace /usr/include/libdrm ${lib.getDev libdrm}/include/libdrm ''; SETUPTOOLS_SCM_PRETEND_VERSION = version; @@ -66,12 +72,12 @@ buildPythonPackage rec { dbus-next mpd2 psutil + pulsectl-asyncio pyxdg pygobject3 pywayland pywlroots xkbcommon - pulseaudio ]; buildInputs = [ @@ -79,6 +85,7 @@ buildPythonPackage rec { wayland wlroots libxkbcommon + xcbutilwm ]; doCheck = false; # Requires X server #TODO this can be worked out with the existing NixOS testing infrastructure. diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ce1944ea8d88..d7f0589dcaf1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11042,7 +11042,7 @@ self: super: with self; { qtconsole = callPackage ../development/python-modules/qtconsole { }; qtile = callPackage ../development/python-modules/qtile { - wlroots = pkgs.wlroots_0_15; + wlroots = pkgs.wlroots_0_16; }; qtile-extras = callPackage ../development/python-modules/qtile-extras { }; From 2fcf97398d9b9afac2db46302a81e671f06bdf72 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 25 Sep 2023 09:19:05 +0200 Subject: [PATCH 05/14] python3Packages.pywlroots: 0.15.24 -> 0.16.5 - Updated version + hash - Removed wlroots pin - Added xcbutilwm --- pkgs/development/python-modules/pywlroots/default.nix | 6 +++--- pkgs/top-level/python-packages.nix | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pywlroots/default.nix b/pkgs/development/python-modules/pywlroots/default.nix index 68a4753ba06d..78f64f1a3e5e 100644 --- a/pkgs/development/python-modules/pywlroots/default.nix +++ b/pkgs/development/python-modules/pywlroots/default.nix @@ -20,19 +20,19 @@ buildPythonPackage rec { pname = "pywlroots"; - version = "0.15.24"; + version = "0.16.5"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-TvYhxiAbK+mpcEE9y79WH96dzeDnvI0xPaUxSYQqyHE="; + hash = "sha256-W43RCJektumgvO9K3K3mHR1BiyZXsHj4fN2EkGlJChQ="; }; nativeBuildInputs = [ pkg-config ]; propagatedNativeBuildInputs = [ cffi ]; - buildInputs = [ libinput libxkbcommon pixman xorg.libxcb udev wayland wlroots ]; + buildInputs = [ libinput libxkbcommon pixman xorg.libxcb xorg.xcbutilwm udev wayland wlroots ]; propagatedBuildInputs = [ cffi pywayland xkbcommon ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d7f0589dcaf1..17034ff82ecd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10922,7 +10922,7 @@ self: super: with self; { pywizlight = callPackage ../development/python-modules/pywizlight { }; pywlroots = callPackage ../development/python-modules/pywlroots { - wlroots = pkgs.wlroots_0_15; + wlroots = pkgs.wlroots_0_16; }; pyws66i = callPackage ../development/python-modules/pyws66i { }; From a6d734cd8a2be7f4acd1fc57f1901b9cca2dbe2a Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Thu, 14 Sep 2023 11:37:04 +0200 Subject: [PATCH 06/14] python310Packages.dns-lexicon: init at 3.14.1 --- .../python-modules/dns-lexicon/default.nix | 84 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 86 insertions(+) create mode 100644 pkgs/development/python-modules/dns-lexicon/default.nix diff --git a/pkgs/development/python-modules/dns-lexicon/default.nix b/pkgs/development/python-modules/dns-lexicon/default.nix new file mode 100644 index 000000000000..bef030ca604d --- /dev/null +++ b/pkgs/development/python-modules/dns-lexicon/default.nix @@ -0,0 +1,84 @@ +{ buildPythonPackage +, fetchFromGitHub +, poetry-core +, beautifulsoup4 +, cryptography +, importlib-metadata +, pyyaml +, requests +, tldextract +, pytestCheckHook +, pytest-vcr +# Optional depedencies +, boto3 +, localzone +, softlayer +, zeep +, dnspython +, oci +, lib +}: + +buildPythonPackage rec { + pname = "dns_lexicon"; + version = "3.14.1"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "Analogj"; + repo = "lexicon"; + rev = "v${version}"; + hash = "sha256-flK2G9mdUWMUACQPo6TqYZ388EacIqkq//tCzUS+Eo8="; + }; + + nativeBuildInputs = [ poetry-core ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-vcr + ] ++ passthru.optional-dependencies.full; + + propagatedBuildInputs = [ + beautifulsoup4 + cryptography + importlib-metadata + pyyaml + requests + tldextract + ]; + + passthru.optional-dependencies = { + route53 = [ boto3 ]; + localzone = [ localzone ]; + softlayer = [ softlayer ]; + ddns = [ dnspython ]; + duckdns = [ dnspython ]; + oci = [ oci ]; + full = [ boto3 localzone softlayer zeep dnspython oci ]; + }; + + pytestFlagsArray = [ + "tests/" + ]; + + disabledTestPaths = [ + # Needs network access + "tests/providers/test_auto.py" + + # Needs network access (and an API token) + "tests/providers/test_namecheap.py" + ]; + + pythonImportsCheck = [ + "lexicon" + ]; + + meta = with lib; { + description = "Manipulate DNS records on various DNS providers in a standardized way"; + homepage = "https://github.com/AnalogJ/lexicon"; + changelog = "https://github.com/AnalogJ/lexicon/blob/v${version}/CHANGELOG.md"; + maintainers = with maintainers; [ aviallon ]; + license = with licenses; [ mit ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 01cf514cba7c..38d2ee679078 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3124,6 +3124,8 @@ self: super: with self; { dnspython = callPackage ../development/python-modules/dnspython { }; + dns-lexicon = callPackage ../development/python-modules/dns-lexicon { }; + doc8 = callPackage ../development/python-modules/doc8 { }; docformatter = callPackage ../development/python-modules/docformatter { }; From e7a0311f15f3d1b960acc1e45e0a62b37e75b011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 25 Sep 2023 22:27:54 -0700 Subject: [PATCH 07/14] nodePackages.react-tools: drop It was deprecated in 2015: https://legacy.reactjs.org/blog/2015/06/12/deprecating-jstransform-and-react-tools.html --- pkgs/development/node-packages/aliases.nix | 1 + .../node-packages/main-programs.nix | 1 - .../node-packages/node-packages.json | 1 - .../node-packages/node-packages.nix | 54 ------------------- 4 files changed, 1 insertion(+), 56 deletions(-) diff --git a/pkgs/development/node-packages/aliases.nix b/pkgs/development/node-packages/aliases.nix index 2b20c95f344a..665da0db4a9b 100644 --- a/pkgs/development/node-packages/aliases.nix +++ b/pkgs/development/node-packages/aliases.nix @@ -105,6 +105,7 @@ mapAliases { inherit (pkgs) quicktype; # added 2023-09-09 react-native-cli = throw "react-native-cli was removed because it was deprecated"; # added 2023-09-25 inherit (pkgs) react-static; # added 2023-08-21 + react-tools = throw "react-tools was removed because it was deprecated"; # added 2023-09-25 readability-cli = pkgs.readability-cli; # Added 2023-06-12 inherit (pkgs) redoc-cli; # added 2023-09-12 reveal-md = pkgs.reveal-md; # added 2023-07-31 diff --git a/pkgs/development/node-packages/main-programs.nix b/pkgs/development/node-packages/main-programs.nix index 6401df80940b..bac7c0780eab 100644 --- a/pkgs/development/node-packages/main-programs.nix +++ b/pkgs/development/node-packages/main-programs.nix @@ -52,7 +52,6 @@ prettier = "prettier"; purescript-psa = "psa"; purs-tidy = "purs-tidy"; - react-tools = "jsx"; remod-cli = "remod"; svelte-language-server = "svelteserver"; teck-programmer = "teck-firmware-upgrade"; diff --git a/pkgs/development/node-packages/node-packages.json b/pkgs/development/node-packages/node-packages.json index f7cc6e3e4558..deb487fbcb76 100644 --- a/pkgs/development/node-packages/node-packages.json +++ b/pkgs/development/node-packages/node-packages.json @@ -211,7 +211,6 @@ , "purty" , "pxder" , "pyright" -, "react-tools" , "remod-cli" , "reveal.js" , "rimraf" diff --git a/pkgs/development/node-packages/node-packages.nix b/pkgs/development/node-packages/node-packages.nix index 0c571a1cca67..3f9796c93368 100644 --- a/pkgs/development/node-packages/node-packages.nix +++ b/pkgs/development/node-packages/node-packages.nix @@ -93872,60 +93872,6 @@ in bypassCache = true; reconstructLock = true; }; - react-tools = nodeEnv.buildNodePackage { - name = "react-tools"; - packageName = "react-tools"; - version = "0.13.3"; - src = fetchurl { - url = "https://registry.npmjs.org/react-tools/-/react-tools-0.13.3.tgz"; - sha512 = "lmdjIRNk2cVUdlF/dyy6oP0nG2qrlX5qKFYRtiC5zK5Sg5QqgUEOrcS7Jz+kPNeOj9OWT7NfrR/cDvbGGSjCyg=="; - }; - dependencies = [ - sources."acorn-5.7.4" - sources."amdefine-1.0.1" - sources."ast-types-0.9.6" - sources."balanced-match-1.0.2" - sources."base62-0.1.1" - sources."brace-expansion-1.1.11" - sources."commander-2.20.3" - sources."commoner-0.10.8" - sources."concat-map-0.0.1" - sources."defined-1.0.1" - sources."detective-4.7.1" - sources."esprima-3.1.3" - sources."esprima-fb-13001.1001.0-dev-harmony-fb" - sources."glob-5.0.15" - sources."graceful-fs-4.2.11" - sources."iconv-lite-0.4.24" - sources."inflight-1.0.6" - sources."inherits-2.0.4" - (sources."jstransform-10.1.0" // { - dependencies = [ - sources."source-map-0.1.31" - ]; - }) - sources."minimatch-3.1.2" - sources."minimist-1.2.8" - sources."mkdirp-0.5.6" - sources."once-1.4.0" - sources."path-is-absolute-1.0.1" - sources."private-0.1.8" - sources."q-1.5.1" - sources."recast-0.11.23" - sources."safer-buffer-2.1.2" - sources."source-map-0.5.7" - sources."wrappy-1.0.2" - ]; - buildInputs = globalBuildInputs; - meta = { - description = "A set of complementary tools to React, including the JSX transformer."; - homepage = "https://facebook.github.io/react"; - license = "BSD-3-Clause"; - }; - production = true; - bypassCache = true; - reconstructLock = true; - }; remod-cli = nodeEnv.buildNodePackage { name = "remod-cli"; packageName = "remod-cli"; From e40c8d3739858985446f109b057224783cf923ca Mon Sep 17 00:00:00 2001 From: Nazar Vinnichuk Date: Wed, 27 Sep 2023 19:55:37 +0300 Subject: [PATCH 08/14] nixos/transmission: fix a typo in the docs --- nixos/modules/services/torrent/transmission.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/torrent/transmission.nix b/nixos/modules/services/torrent/transmission.nix index 752ab91fe631..b98cb5283a1a 100644 --- a/nixos/modules/services/torrent/transmission.nix +++ b/nixos/modules/services/torrent/transmission.nix @@ -182,7 +182,7 @@ in example = "770"; description = lib.mdDoc '' If not `null`, is used as the permissions - set by `systemd.activationScripts.transmission-daemon` + set by `system.activationScripts.transmission-daemon` on the directories [](#opt-services.transmission.settings.download-dir), [](#opt-services.transmission.settings.incomplete-dir). and [](#opt-services.transmission.settings.watch-dir). From 0fecd7edc884b5f397cb44fcaff88d52c34f3696 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Wed, 27 Sep 2023 14:33:21 -0400 Subject: [PATCH 09/14] nixos/stage-1-systemd: fix initrd-fstab generation for bind mounts, again See https://github.com/NixOS/nixpkgs/pull/185089 --- nixos/modules/tasks/filesystems.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/tasks/filesystems.nix b/nixos/modules/tasks/filesystems.nix index 7cb2ca23fa41..3f553948d78d 100644 --- a/nixos/modules/tasks/filesystems.nix +++ b/nixos/modules/tasks/filesystems.nix @@ -188,8 +188,7 @@ let # https://wiki.archlinux.org/index.php/fstab#Filepath_spaces escape = string: builtins.replaceStrings [ " " "\t" ] [ "\\040" "\\011" ] string; in fstabFileSystems: { rootPrefix ? "" }: concatMapStrings (fs: - (optionalString (isBindMount fs) (escape rootPrefix)) - + (if fs.device != null then escape fs.device + (if fs.device != null then escape fs.device else if fs.label != null then "/dev/disk/by-label/${escape fs.label}" else throw "No device specified for mount point ‘${fs.mountPoint}’.") + " " + escape fs.mountPoint From 37cac5f032f6da598eddde8dd49eb7a820d72ea3 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Wed, 27 Sep 2023 18:31:05 -0400 Subject: [PATCH 10/14] nixos/stage-1-systemd: makeFstabEntries: drop rootPrefix parameter --- nixos/modules/tasks/filesystems.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nixos/modules/tasks/filesystems.nix b/nixos/modules/tasks/filesystems.nix index 3f553948d78d..91e30aa4c0af 100644 --- a/nixos/modules/tasks/filesystems.nix +++ b/nixos/modules/tasks/filesystems.nix @@ -187,7 +187,7 @@ let skipCheck = fs: fs.noCheck || fs.device == "none" || builtins.elem fs.fsType fsToSkipCheck || isBindMount fs; # https://wiki.archlinux.org/index.php/fstab#Filepath_spaces escape = string: builtins.replaceStrings [ " " "\t" ] [ "\\040" "\\011" ] string; - in fstabFileSystems: { rootPrefix ? "" }: concatMapStrings (fs: + in fstabFileSystems: { }: concatMapStrings (fs: (if fs.device != null then escape fs.device else if fs.label != null then "/dev/disk/by-label/${escape fs.label}" else throw "No device specified for mount point ‘${fs.mountPoint}’.") @@ -198,9 +198,7 @@ let + "\n" ) fstabFileSystems; - initrdFstab = pkgs.writeText "initrd-fstab" (makeFstabEntries (filter utils.fsNeededForBoot fileSystems) { - rootPrefix = "/sysroot"; - }); + initrdFstab = pkgs.writeText "initrd-fstab" (makeFstabEntries (filter utils.fsNeededForBoot fileSystems) { }); in From e515dce8924197fceb090d9ba46cbb926a5784eb Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Wed, 27 Sep 2023 22:59:13 +0200 Subject: [PATCH 11/14] nixos/sshd: fix sshd.conf validity check When using e.g. `{ addr = "[::]"; port = 22; }` at `listenAddresses`, the check fails because of an escaping issue[1] with last 1 log lines: > Invalid test mode specification -f For full logs, run 'nix log /nix/store/c6pbpw5hjkjgipmarwyic9zyqr1xaix5-check-sshd-config.drv' Using `lib.escapeShellArg` appears to solve the problem. [1] https://github.com/NixOS/nixpkgs/pull/256090#issuecomment-1738063528 --- nixos/modules/services/networking/ssh/sshd.nix | 2 +- nixos/tests/openssh.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/networking/ssh/sshd.nix b/nixos/modules/services/networking/ssh/sshd.nix index bf2f5230c738..327d19daca30 100644 --- a/nixos/modules/services/networking/ssh/sshd.nix +++ b/nixos/modules/services/networking/ssh/sshd.nix @@ -583,7 +583,7 @@ in (lport: "sshd -G -T -C lport=${toString lport} -f ${sshconf} > /dev/null") cfg.ports} ${concatMapStringsSep "\n" - (la: "sshd -G -T -C laddr=${la.addr},lport=${toString la.port} -f ${sshconf} > /dev/null") + (la: "sshd -G -T -C ${escapeShellArg "laddr=${la.addr},lport=${toString la.port}"} -f ${sshconf} > /dev/null") cfg.listenAddresses} touch $out '') diff --git a/nixos/tests/openssh.nix b/nixos/tests/openssh.nix index d771ffd3e0f7..e88625678fec 100644 --- a/nixos/tests/openssh.nix +++ b/nixos/tests/openssh.nix @@ -57,7 +57,7 @@ in { { services.openssh = { - enable = true; listenAddresses = [ { addr = "127.0.0.1"; port = 22; } ]; + enable = true; listenAddresses = [ { addr = "127.0.0.1"; port = 22; } { addr = "[::]"; port = 22; } ]; extraConfig = '' # Combined test for two (predictable) Match criterias Match LocalAddress 127.0.0.1 LocalPort 22 From 86f5431801a68dfda1d8b7f4481a8c19b75498e3 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 21 Sep 2023 07:24:07 +0200 Subject: [PATCH 12/14] =?UTF-8?q?ocamlPackages.apron:=200.9.13=20=E2=86=92?= =?UTF-8?q?=200.9.14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/apron/default.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pkgs/development/ocaml-modules/apron/default.nix b/pkgs/development/ocaml-modules/apron/default.nix index fddf128d0d9b..fd8ae197887f 100644 --- a/pkgs/development/ocaml-modules/apron/default.nix +++ b/pkgs/development/ocaml-modules/apron/default.nix @@ -1,26 +1,24 @@ { stdenv, lib, fetchFromGitHub, perl, gmp, mpfr, ppl, ocaml, findlib, camlidl, mlgmpidl -, gnumake42 }: stdenv.mkDerivation rec { pname = "ocaml${ocaml.version}-apron"; - version = "0.9.13"; + version = "0.9.14"; src = fetchFromGitHub { owner = "antoinemine"; repo = "apron"; rev = "v${version}"; - sha256 = "14ymjahqdxj26da8wik9d5dzlxn81b3z1iggdl7rn2nn06jy7lvy"; + hash = "sha256-e8bSf0FPB6E3MFHHoSrE0x/6nrUStO+gOKxJ4LDHBi0="; }; - # fails with make 4.4 - nativeBuildInputs = [ ocaml findlib perl gnumake42 ]; + nativeBuildInputs = [ ocaml findlib perl ]; buildInputs = [ gmp mpfr ppl camlidl ]; propagatedBuildInputs = [ mlgmpidl ]; # TODO: Doesn't produce the library correctly if true strictDeps = false; - outputs = [ "out" "bin" "dev" ]; + outputs = [ "out" "dev" ]; configurePhase = '' runHook preConfigure @@ -32,8 +30,6 @@ stdenv.mkDerivation rec { postInstall = '' mkdir -p $dev/lib mv $out/lib/ocaml $dev/lib/ - mkdir -p $bin - mv $out/bin $bin/ ''; meta = { From 038238e6aee80a35f235cbb54db254479491af27 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 21 Sep 2023 07:24:44 +0200 Subject: [PATCH 13/14] pplite: init at 0.11 --- pkgs/development/libraries/pplite/default.nix | 19 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/libraries/pplite/default.nix diff --git a/pkgs/development/libraries/pplite/default.nix b/pkgs/development/libraries/pplite/default.nix new file mode 100644 index 000000000000..c9c0d1863382 --- /dev/null +++ b/pkgs/development/libraries/pplite/default.nix @@ -0,0 +1,19 @@ +{ stdenv, lib, fetchurl, flint, gmp }: + +stdenv.mkDerivation { + pname = "pplite"; + version = "0.11"; + + src = fetchurl { + url = "https://github.com/ezaffanella/PPLite/raw/main/releases/pplite-0.11.tar.gz"; + hash = "sha256-6IS5zVab8X+gnhK8/qbPH5FODFaG6vIsIG9TTEpfHEI="; + }; + + buildInputs = [ flint gmp ]; + + meta = { + homepage = "https://github.com/ezaffanella/PPLite"; + description = "Convex polyhedra library for Abstract Interpretation"; + license = lib.licenses.gpl3Only; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6a7bcbd77705..aac2f9604cfd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12215,6 +12215,8 @@ with pkgs; ppl = callPackage ../development/libraries/ppl { }; + pplite = callPackage ../development/libraries/pplite { }; + ppp = callPackage ../tools/networking/ppp { }; pptp = callPackage ../tools/networking/pptp { }; From e7a162f48ae79bbfb5aa5a1165bd989bec55cc6d Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 21 Sep 2023 07:24:49 +0200 Subject: [PATCH 14/14] ocamlPackages.apron: enable PPLite support --- pkgs/development/ocaml-modules/apron/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/apron/default.nix b/pkgs/development/ocaml-modules/apron/default.nix index fd8ae197887f..edf5ae9a4f33 100644 --- a/pkgs/development/ocaml-modules/apron/default.nix +++ b/pkgs/development/ocaml-modules/apron/default.nix @@ -1,4 +1,5 @@ { stdenv, lib, fetchFromGitHub, perl, gmp, mpfr, ppl, ocaml, findlib, camlidl, mlgmpidl +, flint, pplite }: stdenv.mkDerivation rec { @@ -12,7 +13,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ ocaml findlib perl ]; - buildInputs = [ gmp mpfr ppl camlidl ]; + buildInputs = [ gmp mpfr ppl camlidl flint pplite ]; propagatedBuildInputs = [ mlgmpidl ]; # TODO: Doesn't produce the library correctly if true