From 4b57b62ca39a889a5f20259aab1fb1d4e618d4b0 Mon Sep 17 00:00:00 2001 From: sioodmy Date: Sat, 26 Mar 2022 19:52:33 +0100 Subject: [PATCH 01/36] maintainers: add sioodmy --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 47547d7f409b..a06520b89732 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -10997,6 +10997,12 @@ githubId = 3958212; name = "Tom Sorlie"; }; + sioodmy = { + name = "Antoni SokoĊ‚owski"; + email = "81568712+sioodmy@users.noreply.github.com"; + github = "sioodmy"; + githubId = 81568712; + }; schmitthenner = { email = "development@schmitthenner.eu"; github = "fkz"; From 89534942b4c0d7a765ae79399a475db2844f8ca0 Mon Sep 17 00:00:00 2001 From: sioodmy Date: Sat, 26 Mar 2022 19:55:42 +0100 Subject: [PATCH 02/36] todo: init at 2.4 --- pkgs/tools/misc/todo/default.nix | 35 ++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/tools/misc/todo/default.nix diff --git a/pkgs/tools/misc/todo/default.nix b/pkgs/tools/misc/todo/default.nix new file mode 100644 index 000000000000..c11961d0c429 --- /dev/null +++ b/pkgs/tools/misc/todo/default.nix @@ -0,0 +1,35 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, stdenv +, openssl +}: + +rustPlatform.buildRustPackage rec { + pname = "todo"; + version = "2.4"; + + src = fetchFromGitHub { + owner = "sioodmy"; + repo = "todo"; + rev = version; + sha256 = "Z3kaCNZyknNHkZUsHARYh3iWWR+v//JhuYoMIrq54Wo="; + }; + + cargoSha256 = "82xB+9kiLBwCE6yC3tlmgzJJgA1cMDq6Mjc48GBZ9B8="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ]; + preFixup = '' + mv $out/bin/todo-bin $out/bin/todo + ''; + meta = with lib; { + description = "Simple todo cli program written in rust"; + homepage = "https://github.com/sioodmy/todo"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ sioodmy ]; + mainProgram = "todo"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eda0775dd6f3..673215afeda5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10527,6 +10527,8 @@ with pkgs; top-git = callPackage ../applications/version-management/git-and-tools/topgit { }; + todo = callPackage ../tools/misc/todo { }; + tor = callPackage ../tools/security/tor { }; tor-browser-bundle-bin = callPackage ../applications/networking/browsers/tor-browser-bundle-bin { }; From 13352be167d46248f75094591ce30c7ff6abffe4 Mon Sep 17 00:00:00 2001 From: ckie Date: Mon, 23 May 2022 20:08:03 +0300 Subject: [PATCH 03/36] nasmfmt: init at unstable-2021-04-24 This is a little basic formatter for (N)ASM files. I've been getting into hobby osdev a bit. Last and first release was too long ago, so I just picked the latest commit. `buildGoPackage` is used since this doesn't have a `go.mod`. --- pkgs/development/tools/nasmfmt/default.nix | 23 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/tools/nasmfmt/default.nix diff --git a/pkgs/development/tools/nasmfmt/default.nix b/pkgs/development/tools/nasmfmt/default.nix new file mode 100644 index 000000000000..fb727e0f51c9 --- /dev/null +++ b/pkgs/development/tools/nasmfmt/default.nix @@ -0,0 +1,23 @@ +{ lib, buildGoPackage, fetchFromGitHub, go }: + +buildGoPackage rec { + pname = "nasmfmt"; + version = "unstable-2021-04-24"; + + src = fetchFromGitHub { + owner = "yamnikov-oleg"; + repo = "nasmfmt"; + rev = "efba220c5252eb717f080d266dcc8304efdeab40"; + sha256 = "sha256-snhXF+IP0qzl43rKQ0Ugfo1zv3RyNfjxnMpjZEBgPQg="; + }; + + goPackagePath = "github.com/yamnikov-oleg/nasmfmt"; + + meta = with lib; { + description = "Formatter for NASM source files"; + homepage = "https://github.com/yamnikov-oleg/nasmfmt"; + platforms = go.meta.platforms; + license = licenses.mit; + maintainers = with maintainers; [ ckie ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 65c5b9e133f0..fa6ab25e72ec 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13203,6 +13203,8 @@ with pkgs; nasm = callPackage ../development/compilers/nasm { }; + nasmfmt = callPackage ../development/tools/nasmfmt { }; + nvidia_cg_toolkit = callPackage ../development/compilers/nvidia-cg-toolkit { }; obliv-c = callPackage ../development/compilers/obliv-c { From 609deacfc804d941b947a1f4b123f1963b9811d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 22 Aug 2022 11:42:23 +0200 Subject: [PATCH 04/36] usbguard: remove unused libgcrypt crypto backend --- pkgs/os-specific/linux/usbguard/default.nix | 13 ++++--------- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/pkgs/os-specific/linux/usbguard/default.nix b/pkgs/os-specific/linux/usbguard/default.nix index 35505af5a1ed..b950e2a65756 100644 --- a/pkgs/os-specific/linux/usbguard/default.nix +++ b/pkgs/os-specific/linux/usbguard/default.nix @@ -17,12 +17,9 @@ , polkit , protobuf , audit -, libgcrypt , libsodium }: -assert libgcrypt != null -> libsodium == null; - stdenv.mkDerivation rec { version = "1.1.1"; pname = "usbguard"; @@ -51,21 +48,19 @@ stdenv.mkDerivation rec { libcap_ng libqb libseccomp + libsodium polkit protobuf audit - ] - ++ (lib.optional (libgcrypt != null) libgcrypt) - ++ (lib.optional (libsodium != null) libsodium); + ]; configureFlags = [ "--with-bundled-catch" "--with-bundled-pegtl" "--with-dbus" + "--with-crypto-library=sodium" "--with-polkit" - ] - ++ (lib.optional (libgcrypt != null) "--with-crypto-library=gcrypt") - ++ (lib.optional (libsodium != null) "--with-crypto-library=sodium"); + ]; enableParallelBuilding = true; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3cf743a4a780..3ba07d85f114 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24787,9 +24787,7 @@ with pkgs; upower = callPackage ../os-specific/linux/upower { }; - usbguard = callPackage ../os-specific/linux/usbguard { - libgcrypt = null; - }; + usbguard = callPackage ../os-specific/linux/usbguard { }; usbrelay = callPackage ../os-specific/linux/usbrelay { }; usbrelayd = callPackage ../os-specific/linux/usbrelay/daemon.nix { }; From b66cc6ba241416fdaa33b305700eebb39f84bf64 Mon Sep 17 00:00:00 2001 From: Martino Fontana Date: Mon, 22 Aug 2022 15:54:01 +0200 Subject: [PATCH 05/36] rpcs3: add udev rules --- .../emulators/rpcs3/99-ds3-controllers.rules | 5 +++++ .../emulators/rpcs3/99-ds4-controllers.rules | 14 ++++++++++++++ .../emulators/rpcs3/99-dualsense-controllers.rules | 5 +++++ pkgs/applications/emulators/rpcs3/default.nix | 7 +++++++ 4 files changed, 31 insertions(+) create mode 100644 pkgs/applications/emulators/rpcs3/99-ds3-controllers.rules create mode 100644 pkgs/applications/emulators/rpcs3/99-ds4-controllers.rules create mode 100644 pkgs/applications/emulators/rpcs3/99-dualsense-controllers.rules diff --git a/pkgs/applications/emulators/rpcs3/99-ds3-controllers.rules b/pkgs/applications/emulators/rpcs3/99-ds3-controllers.rules new file mode 100644 index 000000000000..a4f32124d970 --- /dev/null +++ b/pkgs/applications/emulators/rpcs3/99-ds3-controllers.rules @@ -0,0 +1,5 @@ +# DualShock 3 over USB +KERNEL=="hidraw", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0268", MODE="0666" + +# DualShock 3 over Bluetooth +KERNEL=="hidraw*", KERNELS=="*054C:0268*", MODE="0666" diff --git a/pkgs/applications/emulators/rpcs3/99-ds4-controllers.rules b/pkgs/applications/emulators/rpcs3/99-ds4-controllers.rules new file mode 100644 index 000000000000..6061debfbff8 --- /dev/null +++ b/pkgs/applications/emulators/rpcs3/99-ds4-controllers.rules @@ -0,0 +1,14 @@ +# DualShock 4 over USB +KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", MODE="0666" + +# DualShock 4 Wireless Adapter over USB +KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ba0", MODE="0666" + +# DualShock 4 Slim over USB +KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="09cc", MODE="0666" + +# DualShock 4 over Bluetooth +KERNEL=="hidraw*", KERNELS=="*054C:05C4*", MODE="0666" + +# DualShock 4 Slim over Bluetooth +KERNEL=="hidraw*", KERNELS=="*054C:09CC*", MODE="0666" diff --git a/pkgs/applications/emulators/rpcs3/99-dualsense-controllers.rules b/pkgs/applications/emulators/rpcs3/99-dualsense-controllers.rules new file mode 100644 index 000000000000..fb3ed3eec3f5 --- /dev/null +++ b/pkgs/applications/emulators/rpcs3/99-dualsense-controllers.rules @@ -0,0 +1,5 @@ +# PS5 DualSense controller over USB hidraw +KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ce6", MODE="0660", TAG+="uaccess" + +# PS5 DualSense controller over bluetooth hidraw +KERNEL=="hidraw*", KERNELS=="*054C:0CE6*", MODE="0660", TAG+="uaccess" diff --git a/pkgs/applications/emulators/rpcs3/default.nix b/pkgs/applications/emulators/rpcs3/default.nix index 46311c3ed45b..3609b9492da4 100644 --- a/pkgs/applications/emulators/rpcs3/default.nix +++ b/pkgs/applications/emulators/rpcs3/default.nix @@ -70,6 +70,13 @@ gcc11Stdenv.mkDerivation { ++ lib.optional alsaSupport alsa-lib ++ lib.optional waylandSupport wayland; + postInstall = '' + # Taken from https://wiki.rpcs3.net/index.php?title=Help:Controller_Configuration + install -D ${./99-ds3-controllers.rules} $out/etc/udev/rules.d/99-ds3-controllers.rules + install -D ${./99-ds4-controllers.rules} $out/etc/udev/rules.d/99-ds4-controllers.rules + install -D ${./99-dualsense-controllers.rules} $out/etc/udev/rules.d/99-dualsense-controllers.rules + ''; + meta = with lib; { description = "PS3 emulator/debugger"; homepage = "https://rpcs3.net/"; From 1c3aae62fe7e5367fc8176d99063beccbff2a787 Mon Sep 17 00:00:00 2001 From: Grace Dinh Date: Wed, 24 Aug 2022 15:06:18 -0700 Subject: [PATCH 06/36] pagmo2: add platforms and unbreak on darwin --- pkgs/development/libraries/pagmo2/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/pagmo2/default.nix b/pkgs/development/libraries/pagmo2/default.nix index dfb70ab624e1..7e30b0593b21 100644 --- a/pkgs/development/libraries/pagmo2/default.nix +++ b/pkgs/development/libraries/pagmo2/default.nix @@ -6,6 +6,8 @@ , ipopt , boost , tbb + # tests pass but take 30+ minutes +, runTests ? false }: stdenv.mkDerivation rec { @@ -20,24 +22,29 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ cmake ]; - buildInputs = [ eigen nlopt ipopt boost tbb ]; + buildInputs = [ eigen nlopt boost tbb ] ++ lib.optional (!stdenv.isDarwin) ipopt; cmakeFlags = [ - "-DPAGMO_BUILD_TESTS=no" + "-DPAGMO_BUILD_TESTS=${if runTests then "ON" else "OFF"}" "-DPAGMO_WITH_EIGEN3=yes" "-DPAGMO_WITH_NLOPT=yes" - "-DNLOPT_LIBRARY=${nlopt}/lib/libnlopt.so" + "-DNLOPT_LIBRARY=${nlopt}/lib/libnlopt${stdenv.hostPlatform.extensions.sharedLibrary}" + ] ++ lib.optionals stdenv.isLinux [ "-DPAGMO_WITH_IPOPT=yes" "-DCMAKE_CXX_FLAGS='-fuse-ld=gold'" + ] ++ lib.optionals stdenv.isDarwin [ + # FIXME: fails ipopt test with Invalid_Option on darwin, so disable. + "-DPAGMO_WITH_IPOPT=no" + "-DLLVM_USE_LINKER=gold" ]; - # tests pass but take 30+ minutes - doCheck = false; + doCheck = runTests; meta = with lib; { homepage = "https://esa.github.io/pagmo2/"; description = "Scientific library for massively parallel optimization"; license = licenses.gpl3Plus; + platforms = platforms.unix; maintainers = [ maintainers.costrouc ]; }; } From e8ea44e2e3e299d049b1b4bbace60e88ad056c13 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 2 Sep 2022 11:16:38 +0000 Subject: [PATCH 07/36] dendrite: 0.9.5 -> 0.9.6 --- pkgs/servers/dendrite/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/dendrite/default.nix b/pkgs/servers/dendrite/default.nix index ee4900c41960..cd7b56e12706 100644 --- a/pkgs/servers/dendrite/default.nix +++ b/pkgs/servers/dendrite/default.nix @@ -3,16 +3,16 @@ buildGoModule rec { pname = "matrix-dendrite"; - version = "0.9.5"; + version = "0.9.6"; src = fetchFromGitHub { owner = "matrix-org"; repo = "dendrite"; rev = "v${version}"; - sha256 = "sha256-iaFVYvMEgjNAvjesMPwBNNput5IyVlBxoFCoJ+HTCdI="; + sha256 = "sha256-IkskR/30vu/RYuCvIH3trPte0MkYhgWzHLBmb325bhM="; }; - vendorSha256 = "sha256-KTux4XTIuyps5esvkEZIOfv3BTSU31kxxOeWeAavDMk="; + vendorSha256 = "sha256-U3buvPu2mZh79DwKYrSj1Y0x3gNjuKscOyAWNKeloXQ="; # some tests are racy, re-enable once upstream has fixed them doCheck = false; From ca1690c2edffa735d1df3acd69a3c8e55c30fc11 Mon Sep 17 00:00:00 2001 From: snaar Date: Fri, 2 Sep 2022 09:37:19 -0400 Subject: [PATCH 08/36] ipmi_exporter: init at 1.6.1 --- .../monitoring/prometheus/ipmi-exporter.nix | 41 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/servers/monitoring/prometheus/ipmi-exporter.nix diff --git a/pkgs/servers/monitoring/prometheus/ipmi-exporter.nix b/pkgs/servers/monitoring/prometheus/ipmi-exporter.nix new file mode 100644 index 000000000000..e2ee9ae4e59f --- /dev/null +++ b/pkgs/servers/monitoring/prometheus/ipmi-exporter.nix @@ -0,0 +1,41 @@ +{ lib, buildGoModule, fetchFromGitHub, nixosTests, makeWrapper, freeipmi }: + +buildGoModule rec { + pname = "ipmi_exporter"; + version = "1.6.1"; + + src = fetchFromGitHub { + owner = "prometheus-community"; + repo = "ipmi_exporter"; + rev = "v${version}"; + hash = "sha256-hifG1lpFUVLoy7Ol3N6h+s+hZjnQxja5svpY4lFFsxw="; + }; + + vendorHash = "sha256-UuPZmxoKVj7FusOS6H1gn6SAzQIZAKyX+m+QS657yXw="; + + nativeBuildInputs = [ makeWrapper ]; + + postInstall = '' + wrapProgram $out/bin/ipmi_exporter --prefix PATH : ${lib.makeBinPath [ freeipmi ]} + ''; + + passthru.tests = { inherit (nixosTests.prometheus-exporters) ipmi; }; + + ldflags = [ + "-s" + "-w" + "-X github.com/prometheus/common/version.Version=${version}" + "-X github.com/prometheus/common/version.Revision=0000000" + "-X github.com/prometheus/common/version.Branch=unknown" + "-X github.com/prometheus/common/version.BuildUser=nix@nixpkgs" + "-X github.com/prometheus/common/version.BuildDate=unknown" + ]; + + meta = with lib; { + description = "An IPMI exporter for Prometheus"; + homepage = "https://github.com/prometheus-community/ipmi_exporter"; + changelog = "https://github.com/prometheus-community/ipmi_exporter/blob/${src.rev}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ snaar ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 194ed0d59d7f..f9fce58ec936 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23302,6 +23302,7 @@ with pkgs; prometheus-gitlab-ci-pipelines-exporter = callPackage ../servers/monitoring/prometheus/gitlab-ci-pipelines-exporter.nix { }; prometheus-haproxy-exporter = callPackage ../servers/monitoring/prometheus/haproxy-exporter.nix { }; prometheus-influxdb-exporter = callPackage ../servers/monitoring/prometheus/influxdb-exporter.nix { }; + prometheus-ipmi-exporter = callPackage ../servers/monitoring/prometheus/ipmi-exporter.nix { }; prometheus-jitsi-exporter = callPackage ../servers/monitoring/prometheus/jitsi-exporter.nix { }; prometheus-jmx-httpserver = callPackage ../servers/monitoring/prometheus/jmx-httpserver.nix { }; prometheus-json-exporter = callPackage ../servers/monitoring/prometheus/json-exporter.nix { }; From 866d9772120d08b7b6c4f9b9bf7ada44a0550897 Mon Sep 17 00:00:00 2001 From: snaar Date: Fri, 2 Sep 2022 09:38:11 -0400 Subject: [PATCH 09/36] nixos/services.prometheus.exporters.ipmi: new module Bringing in new https://github.com/prometheus-community/ipmi_exporter exporter into existing Prometheus exporters framework. --- .../from_md/release-notes/rl-2211.section.xml | 8 ++++ .../manual/release-notes/rl-2211.section.md | 2 + .../monitoring/prometheus/exporters.nix | 17 ++++++++ .../monitoring/prometheus/exporters/ipmi.nix | 41 +++++++++++++++++++ nixos/tests/prometheus-exporters.nix | 13 ++++++ 5 files changed, 81 insertions(+) create mode 100644 nixos/modules/services/monitoring/prometheus/exporters/ipmi.nix diff --git a/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml index cd2ad54db20f..6b4c6bb5a5bc 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml @@ -258,6 +258,14 @@ services.patroni. + + + Prometheus + IPMI exporter, an IPMI exporter for Prometheus. + Available as + services.prometheus.exporters.ipmi. + + WriteFreely, diff --git a/nixos/doc/manual/release-notes/rl-2211.section.md b/nixos/doc/manual/release-notes/rl-2211.section.md index 119cd12492aa..c9ee3c3b21ad 100644 --- a/nixos/doc/manual/release-notes/rl-2211.section.md +++ b/nixos/doc/manual/release-notes/rl-2211.section.md @@ -92,6 +92,8 @@ In addition to numerous new and upgraded packages, this release has the followin - [Patroni](https://github.com/zalando/patroni), a template for PostgreSQL HA with ZooKeeper, etcd or Consul. Available as [services.patroni](options.html#opt-services.patroni.enable). +- [Prometheus IPMI exporter](https://github.com/prometheus-community/ipmi_exporter), an IPMI exporter for Prometheus. Available as [services.prometheus.exporters.ipmi](#opt-services.prometheus.exporters.ipmi.enable). + - [WriteFreely](https://writefreely.org), a simple blogging platform with ActivityPub support. Available as [services.writefreely](options.html#opt-services.writefreely.enable). diff --git a/nixos/modules/services/monitoring/prometheus/exporters.nix b/nixos/modules/services/monitoring/prometheus/exporters.nix index 47c30a0f24bb..4eb965ba3369 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters.nix @@ -36,6 +36,7 @@ let "fastly" "fritzbox" "influxdb" + "ipmi" "json" "jitsi" "kea" @@ -242,6 +243,22 @@ in config = mkMerge ([{ assertions = [ { + assertion = cfg.ipmi.enable -> (cfg.ipmi.configFile != null) -> ( + !(lib.hasPrefix "/tmp/" cfg.ipmi.configFile) + ); + message = '' + Config file specified in `services.prometheus.exporters.ipmi.configFile' must + not reside within /tmp - it won't be visible to the systemd service. + ''; + } { + assertion = cfg.ipmi.enable -> (cfg.ipmi.webConfigFile != null) -> ( + !(lib.hasPrefix "/tmp/" cfg.ipmi.webConfigFile) + ); + message = '' + Config file specified in `services.prometheus.exporters.ipmi.webConfigFile' must + not reside within /tmp - it won't be visible to the systemd service. + ''; + } { assertion = cfg.snmp.enable -> ( (cfg.snmp.configurationPath == null) != (cfg.snmp.configuration == null) ); diff --git a/nixos/modules/services/monitoring/prometheus/exporters/ipmi.nix b/nixos/modules/services/monitoring/prometheus/exporters/ipmi.nix new file mode 100644 index 000000000000..55c4f4aa4826 --- /dev/null +++ b/nixos/modules/services/monitoring/prometheus/exporters/ipmi.nix @@ -0,0 +1,41 @@ +{ config, lib, pkgs, options }: + +with lib; + +let + logPrefix = "services.prometheus.exporter.ipmi"; + cfg = config.services.prometheus.exporters.ipmi; +in { + port = 9290; + + extraOpts = { + configFile = mkOption { + type = types.nullOr types.path; + default = null; + description = lib.mdDoc '' + Path to configuration file. + ''; + }; + + webConfigFile = mkOption { + type = types.nullOr types.path; + default = null; + description = lib.mdDoc '' + Path to configuration file that can enable TLS or authentication. + ''; + }; + }; + + serviceOpts.serviceConfig = { + ExecStart = with cfg; concatStringsSep " " ([ + "${pkgs.prometheus-ipmi-exporter}/bin/ipmi_exporter" + "--web.listen-address ${listenAddress}:${toString port}" + ] ++ optionals (cfg.webConfigFile != null) [ + "--web.config.file ${escapeShellArg cfg.webConfigFile}" + ] ++ optionals (cfg.configFile != null) [ + "--config.file ${escapeShellArg cfg.configFile}" + ] ++ extraFlags); + + ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; + }; +} diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index 4fdff7dbdab8..81e957fd86f7 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -307,6 +307,19 @@ let ''; }; + ipmi = { + exporterConfig = { + enable = true; + }; + exporterTest = '' + wait_for_unit("prometheus-ipmi-exporter.service") + wait_for_open_port(9290) + succeed( + "curl -sSf http://localhost:9290/metrics | grep 'ipmi_scrape_duration_seconds'" + ) + ''; + }; + jitsi = { exporterConfig = { enable = true; From f4b697e6bc05beecf3cedf30bcba3578afb9444f Mon Sep 17 00:00:00 2001 From: Ivar Scholten Date: Tue, 23 Aug 2022 17:13:50 +0200 Subject: [PATCH 10/36] depotdownloader: 2.4.5 -> 2.4.7 --- pkgs/tools/misc/depotdownloader/default.nix | 9 +++++--- pkgs/tools/misc/depotdownloader/deps.nix | 9 +++----- pkgs/tools/misc/depotdownloader/fetch-deps.sh | 22 ------------------- pkgs/tools/misc/depotdownloader/update.sh | 17 ++++++++++++++ 4 files changed, 26 insertions(+), 31 deletions(-) delete mode 100755 pkgs/tools/misc/depotdownloader/fetch-deps.sh create mode 100755 pkgs/tools/misc/depotdownloader/update.sh diff --git a/pkgs/tools/misc/depotdownloader/default.nix b/pkgs/tools/misc/depotdownloader/default.nix index dfe8cbc055e2..1f054fb063a2 100644 --- a/pkgs/tools/misc/depotdownloader/default.nix +++ b/pkgs/tools/misc/depotdownloader/default.nix @@ -6,23 +6,26 @@ buildDotnetModule rec { pname = "depotdownloader"; - version = "2.4.5"; + version = "2.4.7"; src = fetchFromGitHub { owner = "SteamRE"; repo = "DepotDownloader"; rev = "DepotDownloader_${version}"; - sha256 = "0i5qgjnliji1g408ks1034r69vqdmfnzanb0qm7jmyzwww7vwpnh"; + sha256 = "F67bRIIN9aRbcPVFge3o0I9RF5JqHNDlTPhOpwqdADY="; }; projectFile = "DepotDownloader.sln"; nugetDeps = ./deps.nix; + passthru.updateScript = ./update.sh; + meta = with lib; { - broken = stdenv.isDarwin; description = "Steam depot downloader utilizing the SteamKit2 library"; + changelog = "https://github.com/SteamRE/DepotDownloader/releases/tag/DepotDownloader_${version}"; license = licenses.gpl2Only; maintainers = [ maintainers.babbaj ]; platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ]; + mainProgram = "DepotDownloader"; }; } diff --git a/pkgs/tools/misc/depotdownloader/deps.nix b/pkgs/tools/misc/depotdownloader/deps.nix index 2cdb777206be..625d0716eb69 100644 --- a/pkgs/tools/misc/depotdownloader/deps.nix +++ b/pkgs/tools/misc/depotdownloader/deps.nix @@ -1,12 +1,9 @@ { fetchNuGet }: [ - (fetchNuGet { pname = "Microsoft.AspNetCore.App.Ref"; version = "5.0.0"; sha256 = "0d7sjr89zwq0wxirf8la05hfalv9nhvlczg1c7a508k8aw79jvfg"; }) - (fetchNuGet { pname = "Microsoft.NETCore.App.Host.linux-x64"; version = "5.0.17"; sha256 = "1lc2jhr4ikffi5ylyf8f6ya6k0hdj0wp1l0017grrwd4m5ajj4vv"; }) - (fetchNuGet { pname = "Microsoft.NETCore.App.Ref"; version = "5.0.0"; sha256 = "1p62khf9zk23lh91lvz7plv3g1nzmm3b5szqrcm6mb8w3sjk03wi"; }) (fetchNuGet { pname = "Microsoft.NETCore.Platforms"; version = "5.0.0"; sha256 = "0mwpwdflidzgzfx2dlpkvvnkgkr2ayaf0s80737h4wa35gaj11rc"; }) (fetchNuGet { pname = "Microsoft.Win32.Registry"; version = "5.0.0"; sha256 = "102hvhq2gmlcbq8y2cb7hdr2dnmjzfp2k3asr1ycwrfacwyaak7n"; }) - (fetchNuGet { pname = "protobuf-net"; version = "3.0.101"; sha256 = "0594qckbc0lh61sw74ihaq4qmvf1lf133vfa88n443mh7lxm2fwf"; }) - (fetchNuGet { pname = "protobuf-net.Core"; version = "3.0.101"; sha256 = "1kvn9rnm6f0jxs0s9scyyx2f2p8rk03qzc1f6ijv1g6xgkpxkq1m"; }) - (fetchNuGet { pname = "SteamKit2"; version = "2.4.0-Alpha.3"; sha256 = "0n48yjkyzj49kv89jbkwdq6nm9w9ng6cjhvdv0chpryx9zgasgvv"; }) + (fetchNuGet { pname = "protobuf-net"; version = "3.1.17"; sha256 = "1pyx9gnzd91m6viph8gyf57l10jspfphczm5m11wriy3ydrzh6yc"; }) + (fetchNuGet { pname = "protobuf-net.Core"; version = "3.1.17"; sha256 = "0gk3zi1iaxssgjw4kdkpj98sy6hyx8m18fijxy413p19zknvnb0n"; }) + (fetchNuGet { pname = "SteamKit2"; version = "2.4.1"; sha256 = "13f7jra2d0kjlvnk4dghzhx8nhkd001i4xrkf6m19gisjvpjhpdr"; }) (fetchNuGet { pname = "System.Security.AccessControl"; version = "5.0.0"; sha256 = "17n3lrrl6vahkqmhlpn3w20afgz09n7i6rv0r3qypngwi7wqdr5r"; }) (fetchNuGet { pname = "System.Security.Principal.Windows"; version = "5.0.0"; sha256 = "1mpk7xj76lxgz97a5yg93wi8lj0l8p157a5d50mmjy3gbz1904q8"; }) ] diff --git a/pkgs/tools/misc/depotdownloader/fetch-deps.sh b/pkgs/tools/misc/depotdownloader/fetch-deps.sh deleted file mode 100755 index 12a18b9996ad..000000000000 --- a/pkgs/tools/misc/depotdownloader/fetch-deps.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env nix-shell -#!nix-shell -I nixpkgs=../../../../. -i bash -p nuget-to-nix dotnet-sdk -set -eo pipefail -cd "$(dirname "${BASH_SOURCE[0]}")" - -deps_file="$(realpath "./deps.nix")" - -cd ../../../.. -store_src="$(nix-build . -A depotdownloader.src --no-out-link)" -src="$(mktemp -d /tmp/depotdownloader-src.XXX)" -cp -rT "$store_src" "$src" -chmod -R +w "$src" - -pushd "$src" - -mkdir ./nuget_tmp.packages -dotnet restore DepotDownloader.sln --packages ./nuget_tmp.packages - -nuget-to-nix ./nuget_tmp.packages > "$deps_file" - -popd -rm -r "$src" diff --git a/pkgs/tools/misc/depotdownloader/update.sh b/pkgs/tools/misc/depotdownloader/update.sh new file mode 100755 index 000000000000..44b6200c4c5d --- /dev/null +++ b/pkgs/tools/misc/depotdownloader/update.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env nix-shell +#!nix-shell -I nixpkgs=./. -i bash -p jq curl common-updater-scripts nix coreutils + +set -eou pipefail + +depsFile="$(realpath "$(dirname "${BASH_SOURCE[0]}")/deps.nix")" +currentVersion="$(nix eval --raw -f . depotdownloader.version)" +latestVersion="$(curl -s ${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} "https://api.github.com/repos/SteamRE/DepotDownloader/releases?per_page=1" \ + | jq -r '.[].name' | cut -d' ' -f2)" + +if [[ "$currentVersion" = "$latestVersion" ]]; then + echo "Already up to date!" + exit +fi + +update-source-version depotdownloader "$latestVersion" +$(nix-build -A depotdownloader.fetch-deps --no-out-link) "$depsFile" From 1b823602848a04e9d5ad16f58440da45a123c9b0 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Mon, 5 Sep 2022 22:28:38 +0200 Subject: [PATCH 11/36] scanbd: fix cross compile configureFlags --- pkgs/tools/graphics/scanbd/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/graphics/scanbd/default.nix b/pkgs/tools/graphics/scanbd/default.nix index 2f2d0523469e..3f2331a0de04 100644 --- a/pkgs/tools/graphics/scanbd/default.nix +++ b/pkgs/tools/graphics/scanbd/default.nix @@ -18,6 +18,10 @@ stdenv.mkDerivation rec { "--enable-udev" "--with-scanbdconfdir=/etc/scanbd" "--with-systemdsystemunitdir=$out/lib/systemd/system" + ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ + # AC_FUNC_MALLOC is broken on cross builds. + "ac_cv_func_malloc_0_nonnull=yes" + "ac_cv_func_realloc_0_nonnull=yes" ]; enableParallelBuilding = true; From 0fe6d6f6b9ab4b512469554b0c4d7520666377a6 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Mon, 5 Sep 2022 18:47:48 -0400 Subject: [PATCH 12/36] root: populate ROOT_INCLUDE_PATH via the setupHook --- pkgs/applications/science/misc/root/setup-hook.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/science/misc/root/setup-hook.sh b/pkgs/applications/science/misc/root/setup-hook.sh index b26cf9b779f8..34c9bfdcebbd 100644 --- a/pkgs/applications/science/misc/root/setup-hook.sh +++ b/pkgs/applications/science/misc/root/setup-hook.sh @@ -11,3 +11,9 @@ thisroot () { } postHooks+=(thisroot) + +addRootInludePath() { + addToSearchPath ROOT_INCLUDE_PATH $1/include +} + +addEnvHooks "$targetOffset" addRootInludePath From 46cae20566d8d85d63d77ab60fc00687c847ec1b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 6 Sep 2022 02:38:33 +0000 Subject: [PATCH 13/36] psi-plus: 1.5.1633 -> 1.5.1640 --- .../networking/instant-messengers/psi-plus/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/psi-plus/default.nix b/pkgs/applications/networking/instant-messengers/psi-plus/default.nix index c5e5b063c4e2..d3fc8c67ac8d 100644 --- a/pkgs/applications/networking/instant-messengers/psi-plus/default.nix +++ b/pkgs/applications/networking/instant-messengers/psi-plus/default.nix @@ -43,13 +43,13 @@ assert enablePsiMedia -> enablePlugins; mkDerivation rec { pname = "psi-plus"; - version = "1.5.1633"; + version = "1.5.1640"; src = fetchFromGitHub { owner = "psi-plus"; repo = "psi-plus-snapshots"; rev = version; - sha256 = "sha256-kXdDxpIOcwcFy+OmsqlE8a19sGPfMNI08fMy5OFuP9w="; + sha256 = "sha256-vzEZUY9EiOPWdk60EQneMDuX4IAQh4BbBh9MO3Fj04Y="; }; cmakeFlags = [ From 29608b72419d737edf8d45f1baa8c88c8757c8f5 Mon Sep 17 00:00:00 2001 From: Grace Dinh Date: Wed, 24 Aug 2022 20:54:35 -0700 Subject: [PATCH 14/36] openturns: init at 1.19 --- pkgs/development/libraries/dlib/default.nix | 2 +- .../libraries/openturns/default.nix | 80 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 + pkgs/top-level/python-packages.nix | 5 ++ 4 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/libraries/openturns/default.nix diff --git a/pkgs/development/libraries/dlib/default.nix b/pkgs/development/libraries/dlib/default.nix index 11a80987dcab..7245dbfe32f8 100644 --- a/pkgs/development/libraries/dlib/default.nix +++ b/pkgs/development/libraries/dlib/default.nix @@ -35,6 +35,6 @@ stdenv.mkDerivation rec { homepage = "http://www.dlib.net"; license = licenses.boost; maintainers = with maintainers; [ christopherpoole ma27 ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } diff --git a/pkgs/development/libraries/openturns/default.nix b/pkgs/development/libraries/openturns/default.nix new file mode 100644 index 000000000000..d5988ace408a --- /dev/null +++ b/pkgs/development/libraries/openturns/default.nix @@ -0,0 +1,80 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, swig +, boost +, spectra +, libxml2 +, tbb +, hmat-oss +, nlopt +, cminpack +, ceres-solver +, dlib +, hdf5 +, primesieve +, pagmo2 +, ipopt +, Accelerate +# tests take an hour to build on a 48-core machine +, runTests ? false +, enablePython ? false +, python3Packages +}: + +stdenv.mkDerivation rec { + pname = "openturns"; + version = "1.19"; + + src = fetchFromGitHub { + owner = "openturns"; + repo = "openturns"; + rev = "v${version}"; + sha256 = "sha256-hSvhKx7Ke5PXPYGcn9OJvq7YooAbHrbP6TdLZBotriE="; + }; + + nativeBuildInputs = [ cmake ] ++ lib.optional enablePython python3Packages.sphinx; + buildInputs = [ + swig + boost + spectra + libxml2 + tbb + hmat-oss + nlopt + cminpack + ceres-solver + dlib + hdf5 + primesieve + pagmo2 + ipopt + ] ++ lib.optionals enablePython [ + python3Packages.python + python3Packages.matplotlib + python3Packages.psutil + python3Packages.dill + ] ++ lib.optional stdenv.isDarwin Accelerate; + + cmakeFlags = [ + "-DOPENTURNS_SYSCONFIG_PATH=$out/etc" + "-DCMAKE_UNITY_BUILD=ON" + "-DCMAKE_UNITY_BUILD_BATCH_SIZE=32" + "-DSWIG_COMPILE_FLAGS='-O1'" + "-DUSE_SPHINX=${if enablePython then "ON" else "OFF"}" + "-DBUILD_PYTHON=${if enablePython then "ON" else "OFF"}" + ]; + + doCheck = runTests; + + checkTarget = "tests check"; + + meta = with lib; { + description = "Multivariate probabilistic modeling and uncertainty treatment library"; + license = with licenses; [ lgpl3 gpl3 ]; + homepage = "https://openturns.github.io/www/"; + maintainers = with maintainers; [ gdinh ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7c60683d5eba..c5f2f358ef36 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20762,6 +20762,10 @@ with pkgs; opensupaplex = callPackage ../games/opensupaplex { }; + openturns = callPackage ../development/libraries/openturns { + inherit (darwin.apple_sdk.frameworks) Accelerate; + }; + open-wbo = callPackage ../applications/science/logic/open-wbo {}; openwsman = callPackage ../development/libraries/openwsman {}; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e9c527bf12f2..bdb7da734d64 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6351,6 +6351,11 @@ in { opentimestamps = callPackage ../development/python-modules/opentimestamps { }; + openturns = toPythonModule (pkgs.openturns.override { + python3Packages = self; + enablePython = true; + }); + opentracing = callPackage ../development/python-modules/opentracing { }; openvino = toPythonModule (pkgs.openvino.override { From ef69ebad1b1d3331167a13e2bb63965930a611a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 7 Sep 2022 21:03:10 +0200 Subject: [PATCH 15/36] libid3tag: substitute version from src url --- pkgs/development/libraries/libid3tag/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libid3tag/default.nix b/pkgs/development/libraries/libid3tag/default.nix index 8cedd1bcb418..df564812178e 100644 --- a/pkgs/development/libraries/libid3tag/default.nix +++ b/pkgs/development/libraries/libid3tag/default.nix @@ -5,7 +5,7 @@ stdenv.mkDerivation rec { version = "0.15.1b"; src = fetchurl { - url = "mirror://sourceforge/mad/libid3tag-0.15.1b.tar.gz"; + url = "mirror://sourceforge/mad/libid3tag-${version}.tar.gz"; sha256 = "63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151"; }; From 2f761d4a484301b535ac65865540b70b037f9afe Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Wed, 7 Sep 2022 22:33:39 +0200 Subject: [PATCH 16/36] chromiumBeta: 106.0.5249.21 -> 106.0.5249.30 --- .../networking/browsers/chromium/upstream-info.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/browsers/chromium/upstream-info.json b/pkgs/applications/networking/browsers/chromium/upstream-info.json index 74b2568c1c24..79d23bfca362 100644 --- a/pkgs/applications/networking/browsers/chromium/upstream-info.json +++ b/pkgs/applications/networking/browsers/chromium/upstream-info.json @@ -19,9 +19,9 @@ } }, "beta": { - "version": "106.0.5249.21", - "sha256": "0d3ha2r54sjx1rhaas0mrgk2dl4xvgb83r5pbq9qzh52z43ynmlv", - "sha256bin64": "1lcfggqrzr8rbrayffgdygzx0g1i289zvg9fbq282p2x9nwb36cm", + "version": "106.0.5249.30", + "sha256": "11sn0syhxzjz4lcw09aifcnrj2nf72siqh8v60zx6cpqj8jpgk48", + "sha256bin64": "13yg8kb1k3n2vgh5l71vjyx6jf5zsibn41wvqnk0qds0kq6vnxxm", "deps": { "gn": { "version": "2022-08-11", From 1e7eabdf358d5345ebf549592a3503dd9088252d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 8 Sep 2022 01:12:56 +0000 Subject: [PATCH 17/36] discordchatexporter-cli: 2.35 -> 2.35.1 --- pkgs/tools/backup/discordchatexporter-cli/default.nix | 4 ++-- pkgs/tools/backup/discordchatexporter-cli/deps.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/backup/discordchatexporter-cli/default.nix b/pkgs/tools/backup/discordchatexporter-cli/default.nix index b9499fa8fd0f..56e6e02df1e1 100644 --- a/pkgs/tools/backup/discordchatexporter-cli/default.nix +++ b/pkgs/tools/backup/discordchatexporter-cli/default.nix @@ -8,13 +8,13 @@ buildDotnetModule rec { pname = "discordchatexporter-cli"; - version = "2.35"; + version = "2.35.1"; src = fetchFromGitHub { owner = "tyrrrz"; repo = "discordchatexporter"; rev = version; - sha256 = "xPHXs7lk7WaSTr5jH7q8mN1O6Z9cdD2EACx2CmLelJ8="; + sha256 = "Zl9uYwbCSMj+hEvZdI57gALegDizwe4Z1k8qa3hSeIc="; }; projectFile = "DiscordChatExporter.Cli/DiscordChatExporter.Cli.csproj"; diff --git a/pkgs/tools/backup/discordchatexporter-cli/deps.nix b/pkgs/tools/backup/discordchatexporter-cli/deps.nix index b00bd4c074c4..22a0d10b3c9f 100644 --- a/pkgs/tools/backup/discordchatexporter-cli/deps.nix +++ b/pkgs/tools/backup/discordchatexporter-cli/deps.nix @@ -1,6 +1,6 @@ { fetchNuGet }: [ (fetchNuGet { pname = "AdvancedStringBuilder"; version = "0.1.0"; sha256 = "1lpv5sggdxza0bmcqmzf5r4i340f0m7nr5073lac18naj5697q5g"; }) - (fetchNuGet { pname = "CliFx"; version = "2.2.5"; sha256 = "1bk716rdswy28h53qy68xywci8k1h2iqdy2iz1yf7v8g0sa2n79p"; }) + (fetchNuGet { pname = "CliFx"; version = "2.3.0"; sha256 = "0dxxd5hm7gnc1lhq7k266nkcl84w0844r3cdxdcksvcc786f43vp"; }) (fetchNuGet { pname = "DotnetRuntimeBootstrapper"; version = "2.3.1"; sha256 = "0zsicyizachdam64mjm1brh5a3nzf7j8nalyhwnw26wk3v3rgmc9"; }) (fetchNuGet { pname = "Gress"; version = "2.0.1"; sha256 = "00xhyfkrlc38nbl6aymr7zwxc3kj0rxvx5gwk6fkfrvi1pzgq0wc"; }) (fetchNuGet { pname = "JsonExtensions"; version = "1.2.0"; sha256 = "0g54hibabbqqfhxjlnxwv1rxagpali5agvnpymp2w3dk8h6q66xy"; }) @@ -9,5 +9,5 @@ (fetchNuGet { pname = "Polly"; version = "7.2.3"; sha256 = "1iws4jd5iqj5nlfp16fg9p5vfqqas1si0cgh8xcj64y433a933cv"; }) (fetchNuGet { pname = "Spectre.Console"; version = "0.44.0"; sha256 = "0f4q52rmib0q3vg7ij6z73mnymyas7c7wrm8dfdhrkdzn53zwl6p"; }) (fetchNuGet { pname = "Superpower"; version = "3.0.0"; sha256 = "0p6riay4732j1fahc081dzgs9q4z3n2fpxrin4zfpj6q2226dhz4"; }) - (fetchNuGet { pname = "WebMarkupMin.Core"; version = "2.9.0"; sha256 = "1m184n0zdfxzk9vi2q9y8c8987a0c044vy97i9iginndzxvwazgg"; }) + (fetchNuGet { pname = "WebMarkupMin.Core"; version = "2.12.0"; sha256 = "1v4dcrpz2icm73w1pfrcjanx0x4j1khi65pyf1xd712lfpm7gpyd"; }) ] From 86c1d37e87ea71f833025d2e0c834156e3d95d98 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 8 Sep 2022 11:49:18 +0200 Subject: [PATCH 18/36] python310Packages.fastcore: 1.5.23 -> 1.5.25 --- pkgs/development/python-modules/fastcore/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/fastcore/default.nix b/pkgs/development/python-modules/fastcore/default.nix index 6b8f662cbcc6..4a8fff9b7826 100644 --- a/pkgs/development/python-modules/fastcore/default.nix +++ b/pkgs/development/python-modules/fastcore/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "fastcore"; - version = "1.5.23"; + version = "1.5.25"; format = "setuptools"; disabled = pythonOlder "3.8"; @@ -17,7 +17,7 @@ buildPythonPackage rec { owner = "fastai"; repo = pname; rev = "refs/tags/${version}"; - sha256 = "sha256-Zf2+GOyLQelFR0gugSzHWJV9WSKD/8IEkc4li4N+jnI="; + sha256 = "sha256-wlwpw6ELRsORQDs/TC+J3vIR84Te8FE9qec3NLyhFY8="; }; propagatedBuildInputs = [ From 5dd45aa913e4ace915ce157422e305ea39dbd048 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 8 Sep 2022 13:44:46 +0000 Subject: [PATCH 19/36] kubergrunt: 0.9.2 -> 0.9.3 --- pkgs/applications/networking/cluster/kubergrunt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/kubergrunt/default.nix b/pkgs/applications/networking/cluster/kubergrunt/default.nix index d99a8592d198..f40c7e8c871e 100644 --- a/pkgs/applications/networking/cluster/kubergrunt/default.nix +++ b/pkgs/applications/networking/cluster/kubergrunt/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "kubergrunt"; - version = "0.9.2"; + version = "0.9.3"; src = fetchFromGitHub { owner = "gruntwork-io"; repo = "kubergrunt"; rev = "v${version}"; - sha256 = "sha256-2uMPj4/jluBW0N2+AyDb7QmuVwlCavfQZ3i2fg32m8o="; + sha256 = "sha256-nbpRdAkctLiG/hP6vhfEimplAzzj70d5nnaFcJ1NykY="; }; vendorSha256 = "sha256-9hWX6INN5HWXyeFQRjkqr+BsGv56lInVYacvT6Imahw="; From b9e5e6ecf71f825a3f0ce6e1494bd0e6d4ff7fee Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Thu, 8 Sep 2022 12:25:19 -0400 Subject: [PATCH 20/36] ciscoPacketTracer8: 8.1.1 -> 8.2.0 --- pkgs/applications/networking/cisco-packet-tracer/8.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cisco-packet-tracer/8.nix b/pkgs/applications/networking/cisco-packet-tracer/8.nix index 0dd31aea0619..05ced4182740 100644 --- a/pkgs/applications/networking/cisco-packet-tracer/8.nix +++ b/pkgs/applications/networking/cisco-packet-tracer/8.nix @@ -27,7 +27,7 @@ }: let - version = "8.1.1"; + version = "8.2.0"; ptFiles = stdenv.mkDerivation { name = "PacketTracer8Drv"; @@ -36,7 +36,7 @@ let dontUnpack = true; src = requireFile { name = "CiscoPacketTracer_${builtins.replaceStrings ["."] [""] version}_Ubuntu_64bit.deb"; - sha256 = "08c53171aa0257a64ae7de1540f242214033cfa4f879fbc9fed5cc0d32232abf"; + sha256 = "1b19885d59f6130ee55414fb02e211a1773460689db38bfd1ac7f0d45117ed16"; url = "https://www.netacad.com"; }; @@ -108,7 +108,8 @@ let cp "${desktopItem}"/share/applications/* "$out/share/applications/" ''; }; -in stdenv.mkDerivation { +in +stdenv.mkDerivation { pname = "ciscoPacketTracer8"; inherit version; From 1643dbbf43eb3e8aed41060c22609efda60ccb8a Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 8 Sep 2022 18:42:35 +0200 Subject: [PATCH 21/36] deadnix: 0.1.6 -> 0.1.7 --- pkgs/development/tools/deadnix/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/deadnix/default.nix b/pkgs/development/tools/deadnix/default.nix index 53f30595cef6..e2594bde55b3 100644 --- a/pkgs/development/tools/deadnix/default.nix +++ b/pkgs/development/tools/deadnix/default.nix @@ -5,16 +5,16 @@ rustPlatform.buildRustPackage rec { pname = "deadnix"; - version = "0.1.6"; + version = "0.1.7"; src = fetchFromGitHub { owner = "astro"; repo = "deadnix"; rev = "v${version}"; - sha256 = "sha256-a3zEPblkvj9cjGEQB6LKqB+h8C2df7p+IgkwqsUptmY="; + sha256 = "sha256-uvW+PCJdpYHaIIi7YM+kXmHlhQgMbkXBGvAd0mzSb1U="; }; - cargoSha256 = "sha256-zMVXl7kJEavv5zfSm0bTYtd8J3j/LtY3ikPUK2hod+E="; + cargoSha256 = "sha256-cDInmOv1yMedJWHzwGT2wmoUd58ZwKh6IDcOvG65RV8="; meta = with lib; { description = "Find and remove unused code in .nix source files"; From 05f56b91a8481fc27abb0f0bf98c392d08a67076 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 8 Sep 2022 16:49:11 +0000 Subject: [PATCH 22/36] python310Packages.pysnmplib: 5.0.17 -> 5.0.18 --- pkgs/development/python-modules/pysnmplib/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pysnmplib/default.nix b/pkgs/development/python-modules/pysnmplib/default.nix index aa847ea4fdc3..2f7b73732cd5 100644 --- a/pkgs/development/python-modules/pysnmplib/default.nix +++ b/pkgs/development/python-modules/pysnmplib/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "pysnmplib"; - version = "5.0.17"; + version = "5.0.18"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -18,8 +18,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "pysnmp"; repo = "pysnmp"; - rev = "v${version}"; - hash = "sha256-RG8EJmNDXRozlFx76c7p4wILwkatHg/eAhVojp807uQ="; + rev = "refs/tags/v${version}"; + hash = "sha256-sruZWwvcpAACRPXAN+WKFsdOr9EXo4Ipu8H5I22iuRg="; }; nativeBuildInputs = [ From 48377db812510f6fb82dbdf0240e10de447b8efb Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 8 Sep 2022 17:59:59 +0000 Subject: [PATCH 23/36] python310Packages.huggingface-hub: 0.8.1 -> 0.9.1 --- pkgs/development/python-modules/huggingface-hub/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/huggingface-hub/default.nix b/pkgs/development/python-modules/huggingface-hub/default.nix index 26c703b4c254..845117860571 100644 --- a/pkgs/development/python-modules/huggingface-hub/default.nix +++ b/pkgs/development/python-modules/huggingface-hub/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "huggingface-hub"; - version = "0.8.1"; + version = "0.9.1"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "huggingface"; repo = "huggingface_hub"; rev = "refs/tags/v${version}"; - hash = "sha256-XerI4dkGsnxbOE1Si70adVIwLIrStZ3HSuQPAQoJtnQ="; + hash = "sha256-/FUr66lj0wgmuLcwc84oHKBGzU8jFnBVMOXk7uKUpSk="; }; propagatedBuildInputs = [ From 3d4a895972eebd15929d3694b2975ff847d4dcd2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 8 Sep 2022 13:59:21 +0000 Subject: [PATCH 24/36] python310Packages.pathable: 0.4.0 -> 0.4.3 --- pkgs/development/python-modules/pathable/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pathable/default.nix b/pkgs/development/python-modules/pathable/default.nix index 39679fb1f575..0f81f87aa6fc 100644 --- a/pkgs/development/python-modules/pathable/default.nix +++ b/pkgs/development/python-modules/pathable/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "pathable"; - version = "0.4.0"; + version = "0.4.3"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -16,8 +16,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "p1c2u"; repo = pname; - rev = version; - hash = "sha256-3qekweG+o7f6nm1cnCEHrWYn/fQ42GZrZkPwGbZcU38="; + rev = "refs/tags/${version}"; + hash = "sha256-4QRFjbeaggoEPVGAmSY+qVMNW0DKqarNfRXaH6B58ew="; }; nativeBuildInputs = [ From ea7e7b5fdcfe84c44cfd296703c1fcfd7e81fb0f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 8 Sep 2022 13:58:02 +0000 Subject: [PATCH 25/36] python310Packages.flux-led: 0.28.30 -> 0.28.32 --- pkgs/development/python-modules/flux-led/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/flux-led/default.nix b/pkgs/development/python-modules/flux-led/default.nix index 17555cc50c63..65c6151fdf6d 100644 --- a/pkgs/development/python-modules/flux-led/default.nix +++ b/pkgs/development/python-modules/flux-led/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "flux-led"; - version = "0.28.30"; + version = "0.28.32"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -17,7 +17,7 @@ buildPythonPackage rec { owner = "Danielhiversen"; repo = "flux_led"; rev = "refs/tags/${version}"; - sha256 = "sha256-ujox3Q8oyPw8+SBdF9O7ezu8FC/NnWxeSGW8Nfh7tZ8="; + sha256 = "sha256-YZ0ox04xakpazOIAERM2EO5c4PzmaSwYWULSjp0MJbw="; }; propagatedBuildInputs = [ From a1e3d1f39319dedf8d570d67d13d3a09d5f10730 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 8 Sep 2022 14:03:44 +0000 Subject: [PATCH 26/36] python310Packages.pure-cdb: 3.1.1 -> 4.0.0 --- pkgs/development/python-modules/pure-cdb/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pure-cdb/default.nix b/pkgs/development/python-modules/pure-cdb/default.nix index 29905d72cf27..2683499dce2c 100644 --- a/pkgs/development/python-modules/pure-cdb/default.nix +++ b/pkgs/development/python-modules/pure-cdb/default.nix @@ -2,15 +2,15 @@ buildPythonPackage rec { pname = "pure-cdb"; - version = "3.1.1"; + version = "4.0.0"; disabled = pythonOlder "3.4"; # Archive on pypi has no tests. src = fetchFromGitHub { owner = "bbayles"; repo = "python-pure-cdb"; - rev = "v${version}"; - hash = "sha256-/FAe4NkY5unt83BOnJ3QqBJFQCPdQnbMVl1fSZ511Fc="; + rev = "refs/tags/v${version}"; + hash = "sha256-7zxQO+oTZJhXfM2yijGXchLixiQRuFTOSESVlEc+T0s="; }; checkInputs = [ flake8 ]; From 2fd585d6418345c22432e6908e76970da7be0a4b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 8 Sep 2022 13:41:31 +0000 Subject: [PATCH 27/36] python310Packages.pyomo: 6.4.1 -> 6.4.2 --- pkgs/development/python-modules/pyomo/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyomo/default.nix b/pkgs/development/python-modules/pyomo/default.nix index 3a9a80d57812..23283ab2f5a8 100644 --- a/pkgs/development/python-modules/pyomo/default.nix +++ b/pkgs/development/python-modules/pyomo/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "pyomo"; - version = "6.4.1"; + version = "6.4.2"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -18,7 +18,7 @@ buildPythonPackage rec { repo = "pyomo"; owner = "pyomo"; rev = "refs/tags/${version}"; - hash = "sha256-LwlUib/CeVCCmgpTHtYHcFyxk9Esx1zhZ3yGHeGpugY="; + hash = "sha256-YTcK5UCE6AuGk3iyhLOeqdl0rb8ccOhBRJEew40Rris="; }; propagatedBuildInputs = [ From eeefb876afbc45a158c9dfd9b2bcc08aab5f37e5 Mon Sep 17 00:00:00 2001 From: 4825764518 <4825764518@purelymail.com> Date: Thu, 11 Aug 2022 15:50:07 -0400 Subject: [PATCH 28/36] qalculate-qt: init at 4.2.0 --- .../science/math/qalculate-qt/default.nix | 24 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/applications/science/math/qalculate-qt/default.nix diff --git a/pkgs/applications/science/math/qalculate-qt/default.nix b/pkgs/applications/science/math/qalculate-qt/default.nix new file mode 100644 index 000000000000..b504cc67cd4b --- /dev/null +++ b/pkgs/applications/science/math/qalculate-qt/default.nix @@ -0,0 +1,24 @@ +{ lib, stdenv, fetchFromGitHub, intltool, pkg-config, qmake, wrapQtAppsHook, libqalculate, qtbase, qttools }: + +stdenv.mkDerivation rec { + pname = "qalculate-qt"; + version = "4.2.0"; + + src = fetchFromGitHub { + owner = "qalculate"; + repo = "qalculate-qt"; + rev = "v${version}"; + sha256 = "sha256-7H1nQLJBiuTj/GwojfOPpRbDseOHvLa94LK+bXvLhws="; + }; + + nativeBuildInputs = [ qmake intltool pkg-config wrapQtAppsHook ]; + buildInputs = [ libqalculate qtbase qttools ]; + + meta = with lib; { + description = "The ultimate desktop calculator"; + homepage = "http://qalculate.github.io"; + maintainers = with maintainers; [ _4825764518 ]; + license = licenses.gpl2Plus; + platforms = [ "x86_64-linux" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f241e01fbaf4..4d644b73d59b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10264,6 +10264,8 @@ with pkgs; qalculate-gtk = callPackage ../applications/science/math/qalculate-gtk { }; + qalculate-qt = libsForQt5.callPackage ../applications/science/math/qalculate-qt { }; + qastools = libsForQt5.callPackage ../tools/audio/qastools { }; qdigidoc = libsForQt5.callPackage ../tools/security/qdigidoc { } ; From 81a4964fe0f9565cde73bf06174b92b90c4643b0 Mon Sep 17 00:00:00 2001 From: 4825764518 <4825764518@purelymail.com> Date: Thu, 11 Aug 2022 15:51:24 -0400 Subject: [PATCH 29/36] maintainers: add 4825764518 --- maintainers/maintainer-list.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 651341a6eded..05d533a20faa 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -139,6 +139,16 @@ githubId = 1714287; name = "Owen Shepherd"; }; + _4825764518 = { + email = "4825764518@purelymail.com"; + matrix = "@kenzie:matrix.kenzi.dev"; + github = "4825764518"; + githubId = 100122841; + name = "Kenzie"; + keys = [{ + fingerprint = "D292 365E 3C46 A5AA 75EE B30B 78DB 7EDE 3540 794B"; + }]; + }; _6AA4FD = { email = "f6442954@gmail.com"; github = "6AA4FD"; From 17b08ee3c2306033f9b805be025cf85b1fbe1bd9 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 8 Sep 2022 22:02:02 +0800 Subject: [PATCH 30/36] hydra_unstable: 2022-08-08 -> 2022-09-08 --- pkgs/development/tools/misc/hydra/unstable.nix | 6 +++--- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/misc/hydra/unstable.nix b/pkgs/development/tools/misc/hydra/unstable.nix index 33a150be3460..e408e61d090f 100644 --- a/pkgs/development/tools/misc/hydra/unstable.nix +++ b/pkgs/development/tools/misc/hydra/unstable.nix @@ -127,13 +127,13 @@ let in stdenv.mkDerivation rec { pname = "hydra"; - version = "2022-08-08"; + version = "2022-09-08"; src = fetchFromGitHub { owner = "NixOS"; repo = "hydra"; - rev = "2b1c1e65d5fbbe25625a31ee93cb14c9a9edf969"; - sha256 = "sha256-mjCdJPB4t5OLGZ0r5usJTVs1BBr4cWeGGE7imyUfQnQ="; + rev = "d6cbf227cba90cf281f72f464393d75a45f2f3a8"; + sha256 = "sha256-eMStY0/cS/blRGyyp1DUpP3N0SxYZrxah+hNJeKwDSw="; }; patches = [ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f20f2f329076..7176286b9601 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18767,7 +18767,7 @@ with pkgs; hwloc = callPackage ../development/libraries/hwloc {}; - hydra_unstable = callPackage ../development/tools/misc/hydra/unstable.nix { nix = nixVersions.nix_2_9; }; + hydra_unstable = callPackage ../development/tools/misc/hydra/unstable.nix { nix = nixVersions.nix_2_11; }; hydra-cli = callPackage ../development/tools/misc/hydra-cli { }; From 834287523c5df0ba0fc6e8f162209f6d48e52060 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Thu, 8 Sep 2022 14:55:32 -0600 Subject: [PATCH 31/36] atkinson-hyperlegible: Fix build Fallout from #173430. --- pkgs/data/fonts/atkinson-hyperlegible/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/data/fonts/atkinson-hyperlegible/default.nix b/pkgs/data/fonts/atkinson-hyperlegible/default.nix index ef7425e12e49..8b2b04553726 100644 --- a/pkgs/data/fonts/atkinson-hyperlegible/default.nix +++ b/pkgs/data/fonts/atkinson-hyperlegible/default.nix @@ -12,8 +12,10 @@ in fetchFromGitHub { sha256 = "sha256-urSTqC3rfDRM8IMG+edwKEe7NPiTuDZph3heGHzLDks="; postFetch = '' - tar xf $downloadedFile --strip=1 - install -Dm644 -t $out/share/fonts/opentype fonts/otf/* + install -Dm644 -t $out/share/fonts/opentype $out/fonts/otf/* + shopt -s extglob dotglob + rm -rf $out/!(share) + shopt -u extglob dotglob ''; meta = with lib; { From 40e49795aa405221e35501da797d3f3351d19cf8 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Thu, 8 Sep 2022 14:55:32 -0600 Subject: [PATCH 32/36] publicsuffix-list: Fix build Fallout from #173430. Fixes #178825. --- pkgs/data/misc/publicsuffix-list/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/data/misc/publicsuffix-list/default.nix b/pkgs/data/misc/publicsuffix-list/default.nix index db74b74f22d9..063e120d3c4b 100644 --- a/pkgs/data/misc/publicsuffix-list/default.nix +++ b/pkgs/data/misc/publicsuffix-list/default.nix @@ -11,8 +11,10 @@ in fetchFromGitHub { sha256 = "sha256-Q8uIXM1CMu8dlWcVoL17M1XRGu3kG7Y7jpx0oHQh+2I="; postFetch = '' - tar xf $downloadedFile --strip=1 - install -Dm0444 public_suffix_list.dat tests/test_psl.txt -t $out/share/publicsuffix + install -Dm0444 $out/public_suffix_list.dat $out/tests/test_psl.txt -t $out/share/publicsuffix + shopt -s extglob dotglob + rm -rf $out/!(share) + shopt -u extglob dotglob ''; meta = with lib; { From 7df746316d7ad615811a558169478c55b227e536 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Thu, 8 Sep 2022 14:55:32 -0600 Subject: [PATCH 33/36] hermit: Fix build Fallout from #173430. --- pkgs/data/fonts/hermit/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/data/fonts/hermit/default.nix b/pkgs/data/fonts/hermit/default.nix index 3ff5dd368292..999a8995b46e 100644 --- a/pkgs/data/fonts/hermit/default.nix +++ b/pkgs/data/fonts/hermit/default.nix @@ -8,9 +8,12 @@ in fetchzip rec { url = "https://pcaro.es/d/otf-${name}.tar.gz"; + stripRoot = false; postFetch = '' - tar xf $downloadedFile - install -m444 -Dt $out/share/fonts/opentype *.otf + install -m444 -Dt $out/share/fonts/opentype $out/*.otf + shopt -s extglob dotglob + rm -rf $out/!(share) + shopt -u extglob dotglob ''; sha256 = "127hnpxicqya7v1wmzxxqafq3aj1n33i4j5ncflbw6gj5g3bizwl"; From 8ebca081b6c916c6d12f893c8e859e4402f7c24d Mon Sep 17 00:00:00 2001 From: kilianar Date: Thu, 8 Sep 2022 22:55:10 +0200 Subject: [PATCH 34/36] starship: 1.10.2 -> 1.10.3 https://github.com/starship/starship/releases/tag/v1.10.3 --- pkgs/tools/misc/starship/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/starship/default.nix b/pkgs/tools/misc/starship/default.nix index 12bd663d657d..a16440fe4c36 100644 --- a/pkgs/tools/misc/starship/default.nix +++ b/pkgs/tools/misc/starship/default.nix @@ -14,13 +14,13 @@ rustPlatform.buildRustPackage rec { pname = "starship"; - version = "1.10.2"; + version = "1.10.3"; src = fetchFromGitHub { owner = "starship"; repo = pname; rev = "v${version}"; - sha256 = "sha256-RSARAcId8U5b6vH4m5Zr6FqV1OFolqC+wyfqZbJZH4w="; + sha256 = "sha256-6YpC6JDBYwP+RHQUYXmgOWUWa7DgvjowhGCpr2bNl4Q="; }; nativeBuildInputs = [ installShellFiles cmake ]; @@ -38,7 +38,7 @@ rustPlatform.buildRustPackage rec { --zsh <($out/bin/starship completions zsh) ''; - cargoSha256 = "sha256-UhTbrORUp+aP0SF1XjgpTunS0bpRvYxvUwEKBH7wFnQ="; + cargoSha256 = "sha256-skNvlifjRHTrJPMjpRv2E+M9/XA+3m6dHbb+gczaYoo="; preCheck = '' HOME=$TMPDIR From bb5b6029aa2303104f2f15af83068a4663a91f09 Mon Sep 17 00:00:00 2001 From: Yureka Date: Thu, 8 Sep 2022 23:11:45 +0200 Subject: [PATCH 35/36] Revert "nixos/console: detect unicode properly" This reverts commit 05958b228b49cfe97f7faf51de4aaf3ede31894e. Issue https://github.com/NixOS/nixpkgs/issues/188998 is concerns quite a few NixOS users with full disk encryption and custom keymap. Since there hasn't been a proper fix agreed upon and merged, I am reverting this. The changes can be applied again, when it is ensured that they do not break custom keymaps in initrd. --- nixos/modules/config/console.nix | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/nixos/modules/config/console.nix b/nixos/modules/config/console.nix index 89b75184c5d6..1f8f80a554d0 100644 --- a/nixos/modules/config/console.nix +++ b/nixos/modules/config/console.nix @@ -8,23 +8,14 @@ let makeColor = i: concatMapStringsSep "," (x: "0x" + substring (2*i) 2 x); - isUnicode = '' \ - LOCALE_ARCHIVE=${config.i18n.glibcLocales}/lib/locale/locale-archive \ - LANG=${config.i18n.defaultLocale} \ - LC_IDENTIFICATION=${config.i18n.defaultLocale} \ - locale -k identification-codeset | grep -i UTF-8 \ - ''; + isUnicode = hasSuffix "UTF-8" (toUpper config.i18n.defaultLocale); optimizedKeymap = pkgs.runCommand "keymap" { - nativeBuildInputs = with pkgs.buildPackages; [ kbd locale ]; + nativeBuildInputs = [ pkgs.buildPackages.kbd ]; LOADKEYS_KEYMAP_PATH = "${consoleEnv pkgs.kbd}/share/keymaps/**"; preferLocalBuild = true; } '' - if ${isUnicode} ; then - loadkeys -b -u "${cfg.keyMap}" > $out - else - loadkeys -b "${cfg.keyMap}" > $out - fi + loadkeys -b ${optionalString isUnicode "-u"} "${cfg.keyMap}" > $out ''; # Sadly, systemd-vconsole-setup doesn't support binary keymaps. @@ -139,7 +130,7 @@ in }) (mkIf setVconsole (mkMerge [ - { environment.systemPackages = with pkgs; [ kbd locale ]; + { environment.systemPackages = [ pkgs.kbd ]; # Let systemd-vconsole-setup.service do the work of setting up the # virtual consoles. @@ -148,13 +139,8 @@ in environment.etc.kbd.source = "${consoleEnv pkgs.kbd}/share"; boot.initrd.preLVMCommands = mkIf (!config.boot.initrd.systemd.enable) (mkBefore '' - if ${isUnicode} ; then - kbd_mode -u -C /dev/console - printf "\033%%G" >> /dev/console - else - kbd_mode -a -C /dev/console - printf "\033%%@" >> /dev/console - fi + kbd_mode ${if isUnicode then "-u" else "-a"} -C /dev/console + printf "\033%%${if isUnicode then "G" else "@"}" >> /dev/console loadkmap < ${optimizedKeymap} ${optionalString cfg.earlySetup '' From 9bb0abd6684bd8bba3aa56ec231be9e038e02756 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Thu, 8 Sep 2022 06:11:50 +1000 Subject: [PATCH 36/36] talosctl: 1.2.0 -> 1.2.1 https://github.com/siderolabs/talos/releases/tag/v1.2.1 --- pkgs/applications/networking/cluster/talosctl/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/networking/cluster/talosctl/default.nix b/pkgs/applications/networking/cluster/talosctl/default.nix index 65cb2b755dfa..8ba5fa6b700b 100644 --- a/pkgs/applications/networking/cluster/talosctl/default.nix +++ b/pkgs/applications/networking/cluster/talosctl/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "talosctl"; - version = "1.2.0"; + version = "1.2.1"; src = fetchFromGitHub { owner = "siderolabs"; repo = "talos"; rev = "v${version}"; - sha256 = "sha256-+cipDqPsBrUw4Q3uDkV76buPWTgtJXnvFsEaqqifTH8="; + sha256 = "sha256-MdKeczst9t7VOxTx4/cAfbEUFOCIS3jQRYJcCJ8AH0Q="; }; - vendorSha256 = "sha256-58XLmJaE3g2KG9e4rOyO1ouBBlCGX96e8AWfr0XVHC4="; + vendorSha256 = "sha256-rYPkY6dH4DJ6uwckTbohlutXNnlQBMODPKntu5EVVTY="; ldflags = [ "-s" "-w" ]; @@ -28,7 +28,7 @@ buildGoModule rec { --zsh <($out/bin/talosctl completion zsh) ''; - doCheck = false; + doCheck = false; # no tests meta = with lib; { description = "A CLI for out-of-band management of Kubernetes nodes created by Talos";