From 687f42d64bb894d41aef996db7d8bf6d356d8ff9 Mon Sep 17 00:00:00 2001 From: Dee Anzorge Date: Thu, 7 Dec 2023 02:43:50 +0100 Subject: [PATCH 01/61] unicode-character-database: do not include env-vars Including env-vars in output breaks reproducibility --- pkgs/data/misc/unicode-character-database/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/data/misc/unicode-character-database/default.nix b/pkgs/data/misc/unicode-character-database/default.nix index 721e04256db8..393fe7d2a806 100644 --- a/pkgs/data/misc/unicode-character-database/default.nix +++ b/pkgs/data/misc/unicode-character-database/default.nix @@ -1,9 +1,9 @@ -{ lib, stdenv +{ lib, stdenvNoCC , fetchurl , unzip }: -stdenv.mkDerivation rec { +stdenvNoCC.mkDerivation rec { pname = "unicode-character-database"; version = "15.1.0"; @@ -23,6 +23,7 @@ stdenv.mkDerivation rec { mkdir -p $out/share/unicode cp -r * $out/share/unicode + rm $out/share/unicode/env-vars runHook postInstall ''; From c1162ca5608df8cb4841e132302cab61f5ed2d41 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Thu, 4 Jan 2024 12:58:45 -0500 Subject: [PATCH 02/61] davinci-resolve-studio: Automatically create license dir Only needed for studio variant. Previously, `extraPreBwrapCmds` did not exist. Now that it does, we can use it. See message in commit fe45cd375a4b70fe761b188b77d81c4aabd85296 for context. --- pkgs/applications/video/davinci-resolve/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/video/davinci-resolve/default.nix b/pkgs/applications/video/davinci-resolve/default.nix index ba37c886352e..e1ac4526b160 100644 --- a/pkgs/applications/video/davinci-resolve/default.nix +++ b/pkgs/applications/video/davinci-resolve/default.nix @@ -232,6 +232,10 @@ buildFHSEnv { zlib ]; + extraPreBwrapCmds = lib.optionalString studioVariant '' + mkdir -p ~/.local/share/DaVinciResolve/license || exit 1 + ''; + extraBwrapArgs = lib.optionals studioVariant [ "--bind \"$HOME\"/.local/share/DaVinciResolve/license ${davinci}/.license" ]; From 2ff295a0a93f213e472ffb0fd8d518cb4cdbe9ae Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 30 Jan 2024 21:03:51 +0100 Subject: [PATCH 03/61] python311Packages.sentry-sdk: 1.39.2 -> 1.40.0 Diff: https://github.com/getsentry/sentry-python/compare/refs/tags/1.39.2...1.40.0 Changelog: https://github.com/getsentry/sentry-python/blob/1.40.0/CHANGELOG.md --- pkgs/development/python-modules/sentry-sdk/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/sentry-sdk/default.nix b/pkgs/development/python-modules/sentry-sdk/default.nix index 11d1df937702..61a1f6f35ba4 100644 --- a/pkgs/development/python-modules/sentry-sdk/default.nix +++ b/pkgs/development/python-modules/sentry-sdk/default.nix @@ -37,7 +37,7 @@ buildPythonPackage rec { pname = "sentry-sdk"; - version = "1.39.2"; + version = "1.40.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -46,7 +46,7 @@ buildPythonPackage rec { owner = "getsentry"; repo = "sentry-python"; rev = "refs/tags/${version}"; - hash = "sha256-MC+9w53fsC5XB7CR9SS+z4bu2GgxkqdeYWERhk8lhcA="; + hash = "sha256-cVBqSFMBSRoIIv2RmkSLhlQ+jrofJVT9QoAPyjyX0ms="; }; nativeBuildInputs = [ From 9ddbe0c7e4774439077a68b4b3def480da903f68 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 31 Jan 2024 11:40:50 +0000 Subject: [PATCH 04/61] python311Packages.ansible: 9.1.0 -> 9.2.0 --- pkgs/development/python-modules/ansible/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ansible/default.nix b/pkgs/development/python-modules/ansible/default.nix index 957c36b8525e..c2ebd3e9d8bb 100644 --- a/pkgs/development/python-modules/ansible/default.nix +++ b/pkgs/development/python-modules/ansible/default.nix @@ -21,7 +21,7 @@ let pname = "ansible"; - version = "9.1.0"; + version = "9.2.0"; in buildPythonPackage { inherit pname version; @@ -31,7 +31,7 @@ buildPythonPackage { src = fetchPypi { inherit pname version; - hash = "sha256-WtlJkfsODlOncKn/zxtoBH9hsigtlIp9JoLs2PuPob8="; + hash = "sha256-ogekoApF5c0Xin+UykKv4m8jydJ75JkB6oxF0YoHt8Y="; }; postPatch = '' From 6ae8eb187d72c6dee6014063481f50a1b8d17557 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 31 Jan 2024 11:52:14 +0000 Subject: [PATCH 05/61] python311Packages.ansible-core: 2.16.2 -> 2.16.3 --- pkgs/development/python-modules/ansible/core.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ansible/core.nix b/pkgs/development/python-modules/ansible/core.nix index dec3ad21bdeb..4f4a200a0270 100644 --- a/pkgs/development/python-modules/ansible/core.nix +++ b/pkgs/development/python-modules/ansible/core.nix @@ -28,11 +28,11 @@ buildPythonPackage rec { pname = "ansible-core"; - version = "2.16.2"; + version = "2.16.3"; src = fetchPypi { inherit pname version; - hash = "sha256-5KtVnn5SWxxvmQhPyoc7sBR3XV7L6EW3wHuOnWycBIs="; + hash = "sha256-dqh2WoWGBk7wc6KZVi4wj6LBgKdbX3Vpu9D2HUFxzbM="; }; # ansible_connection is already wrapped, so don't pass it through From d0a99254bf66b5dd2dbdc98d399c7ea80d9ad0f1 Mon Sep 17 00:00:00 2001 From: Melvyn Date: Fri, 2 Feb 2024 22:38:49 -0800 Subject: [PATCH 06/61] build-fhs-user-env: add compatibility for pipewire alsa emulation --- pkgs/build-support/build-fhsenv-chroot/env.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/build-support/build-fhsenv-chroot/env.nix b/pkgs/build-support/build-fhsenv-chroot/env.nix index a1a26472373f..6a82435d7067 100644 --- a/pkgs/build-support/build-fhsenv-chroot/env.nix +++ b/pkgs/build-support/build-fhsenv-chroot/env.nix @@ -135,6 +135,7 @@ let # symlink ALSA stuff ln -s /host/etc/asound.conf asound.conf + ln -s /host/etc/alsa alsa # symlink SSL certs mkdir -p ssl From c313242fe83e4fa6d28b7cfd6f980a8e24573670 Mon Sep 17 00:00:00 2001 From: sunder Date: Sat, 3 Feb 2024 14:27:40 +0300 Subject: [PATCH 07/61] micro: fixed clipboard issue --- pkgs/applications/editors/micro/default.nix | 27 ++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/editors/micro/default.nix b/pkgs/applications/editors/micro/default.nix index e20a7942719a..beaf6791f842 100644 --- a/pkgs/applications/editors/micro/default.nix +++ b/pkgs/applications/editors/micro/default.nix @@ -1,5 +1,21 @@ -{ lib, buildGoModule, fetchFromGitHub, installShellFiles, callPackage }: - +{ lib +, stdenv +, buildGoModule +, fetchFromGitHub +, installShellFiles +, callPackage +, wl-clipboard +, xclip +, makeWrapper +, withXclip ? true +, withWlclip ? true +}: +let + clipboardPkgs = if stdenv.isLinux then + lib.optional withXclip xclip ++ + lib.optional withWlclip wl-clipboard + else [ ]; +in buildGoModule rec { pname = "micro"; version = "2.0.13"; @@ -13,7 +29,7 @@ buildGoModule rec { vendorHash = "sha256-ePhObvm3m/nT+7IyT0W6K+y+9UNkfd2kYjle2ffAd9Y="; - nativeBuildInputs = [ installShellFiles ]; + nativeBuildInputs = [ installShellFiles makeWrapper ]; subPackages = [ "cmd/micro" ]; @@ -34,6 +50,11 @@ buildGoModule rec { install -Dm644 assets/micro-logo-mark.svg $out/share/icons/hicolor/scalable/apps/micro.svg ''; + postFixup = '' + wrapProgram "$out/bin/micro" \ + --prefix PATH : "${lib.makeBinPath clipboardPkgs}" + ''; + passthru.tests.expect = callPackage ./test-with-expect.nix { }; meta = with lib; { From f0fd731145cc2d6aa451bc5d6ee5d4f77558c630 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 6 Feb 2024 06:25:26 +0000 Subject: [PATCH 08/61] hare: 0-unstable-2024-02-01 -> unstable-2024-02-05 --- pkgs/by-name/ha/hare/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ha/hare/package.nix b/pkgs/by-name/ha/hare/package.nix index c2b75b43d44a..a60b72ed60ea 100644 --- a/pkgs/by-name/ha/hare/package.nix +++ b/pkgs/by-name/ha/hare/package.nix @@ -60,15 +60,15 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "hare"; - version = "0-unstable-2024-02-01"; + version = "unstable-2024-02-05"; outputs = [ "out" "man" ]; src = fetchFromSourcehut { owner = "~sircmpwn"; repo = "hare"; - rev = "4d387ed61968f468e43571d15485b498e28acaec"; - hash = "sha256-vVL8e+P/lnp0/jO+lQ/q0CehwxAvXh+FPOMJ8r+2Ftk="; + rev = "d0c057dbbb0f1ee9179769e187c0fbd3b00327d4"; + hash = "sha256-3zpUqdxoKMwezRfMgnpY3KfMB5/PFfRYtGPZxWfNDtA="; }; patches = [ From 0139970416bbc87d26662ddfe3ab613166ed01a7 Mon Sep 17 00:00:00 2001 From: WilliButz Date: Wed, 7 Feb 2024 16:02:00 +0100 Subject: [PATCH 09/61] nixos/qemu-vm: convert tmpfiles rules to settings This change replaces the previously hard-coded `/boot` path with a reference to `efiSysMountPoint` and more importantly this change makes it possible to override these rules in scenarios in which they are not desired. One such scenario would be when `systemd-gpt-auto-generator(8)` is used to automount the ESP. Consider this section from the mentioned manpage: > The ESP is mounted to /boot/ if that directory exists and is not used > for XBOOTLDR, and otherwise to /efi/. Same as for /boot/, an automount > unit is used. The mount point will be created if necessary. Prior to this change, the ESP would be automounted under `/efi` on first boot, then the previous tmpfiles rules caused `/boot` to be created. Following the quote above, this meant that the ESP is mounted under `/boot` for each subsequent boot. --- nixos/modules/virtualisation/qemu-vm.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index 3d7f3ccb62f8..523cfa023b35 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -1066,10 +1066,18 @@ in ''} ''; - systemd.tmpfiles.rules = lib.mkIf config.boot.initrd.systemd.enable [ - "f /etc/NIXOS 0644 root root -" - "d /boot 0644 root root -" - ]; + systemd.tmpfiles.settings."10-qemu-vm" = lib.mkIf config.boot.initrd.systemd.enable { + "/etc/NIXOS".f = { + mode = "0644"; + user = "root"; + group = "root"; + }; + "${config.boot.loader.efi.efiSysMountPoint}".d = { + mode = "0644"; + user = "root"; + group = "root"; + }; + }; # After booting, register the closure of the paths in # `virtualisation.additionalPaths' in the Nix database in the VM. This From be7065f6735466aaa83596423a9d7c2323093a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 28 Jan 2024 23:12:33 +0100 Subject: [PATCH 10/61] bitwarden-directory-connector: init GUI at 2023.10.0 --- .../package.nix | 66 ----------- .../bitwarden-directory-connector/default.nix | 103 ++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 105 insertions(+), 66 deletions(-) delete mode 100644 pkgs/by-name/bi/bitwarden-directory-connector-cli/package.nix create mode 100644 pkgs/tools/security/bitwarden-directory-connector/default.nix diff --git a/pkgs/by-name/bi/bitwarden-directory-connector-cli/package.nix b/pkgs/by-name/bi/bitwarden-directory-connector-cli/package.nix deleted file mode 100644 index 24376014a120..000000000000 --- a/pkgs/by-name/bi/bitwarden-directory-connector-cli/package.nix +++ /dev/null @@ -1,66 +0,0 @@ -{ - lib, - buildNpmPackage, - fetchFromGitHub, - buildPackages, - python3, - pkg-config, - libsecret, - nodejs_18, -}: -buildNpmPackage rec { - pname = "bitwarden-directory-connector-cli"; - version = "2023.10.0"; - nodejs = nodejs_18; - - src = fetchFromGitHub { - owner = "bitwarden"; - repo = "directory-connector"; - rev = "v${version}"; - hash = "sha256-PlOtTh+rpTxAv8ajHBDHZuL7yeeLVpbAfKEDPQlejIg="; - }; - - postPatch = '' - ${lib.getExe buildPackages.jq} 'del(.scripts.preinstall)' package.json > package.json.tmp - mv -f package.json{.tmp,} - ''; - - npmDepsHash = "sha256-jBAWWY12qeX2EDhUvT3TQpnQvYXRsIilRrXGpVzxYvw="; - - env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1"; - - makeCacheWritable = true; - npmBuildScript = "build:cli:prod"; - - installPhase = '' - runHook preInstall - mkdir -p $out/libexec/bitwarden-directory-connector - cp -R {build-cli,node_modules} $out/libexec/bitwarden-directory-connector - runHook postInstall - ''; - - # needs to be wrapped with nodejs so that it can be executed - postInstall = '' - chmod +x $out/libexec/bitwarden-directory-connector/build-cli/bwdc.js - mkdir -p $out/bin - ln -s $out/libexec/bitwarden-directory-connector/build-cli/bwdc.js $out/bin/bitwarden-directory-connector-cli - ''; - - buildInputs = [ - libsecret - ]; - - nativeBuildInputs = [ - python3 - pkg-config - ]; - - meta = with lib; { - description = "LDAP connector for Bitwarden"; - homepage = "https://github.com/bitwarden/directory-connector"; - license = licenses.gpl3Only; - maintainers = with maintainers; [Silver-Golden]; - platforms = platforms.linux; - mainProgram = "bitwarden-directory-connector-cli"; - }; -} diff --git a/pkgs/tools/security/bitwarden-directory-connector/default.nix b/pkgs/tools/security/bitwarden-directory-connector/default.nix new file mode 100644 index 000000000000..7f46b444b2e9 --- /dev/null +++ b/pkgs/tools/security/bitwarden-directory-connector/default.nix @@ -0,0 +1,103 @@ +{ + lib, + buildNpmPackage, + electron, + fetchFromGitHub, + buildPackages, + python3, + pkg-config, + libsecret, + nodejs_18, +}: + +let + common = { name, npmBuildScript, installPhase }: buildNpmPackage rec { + pname = name; + version = "2023.10.0"; + nodejs = nodejs_18; + + src = fetchFromGitHub { + owner = "bitwarden"; + repo = "directory-connector"; + rev = "v${version}"; + hash = "sha256-PlOtTh+rpTxAv8ajHBDHZuL7yeeLVpbAfKEDPQlejIg="; + }; + + postPatch = '' + ${lib.getExe buildPackages.jq} 'del(.scripts.preinstall)' package.json > package.json.tmp + mv -f package.json{.tmp,} + + substituteInPlace electron-builder.json \ + --replace-fail '"afterSign": "scripts/notarize.js",' "" \ + --replace-fail "AppImage" "dir" + ''; + + npmDepsHash = "sha256-jBAWWY12qeX2EDhUvT3TQpnQvYXRsIilRrXGpVzxYvw="; + + env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1"; + + makeCacheWritable = true; + inherit npmBuildScript installPhase; + + buildInputs = [ + libsecret + ]; + + nativeBuildInputs = [ + python3 + pkg-config + ]; + + meta = with lib; { + description = "LDAP connector for Bitwarden"; + homepage = "https://github.com/bitwarden/directory-connector"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ Silver-Golden SuperSandro2000 ]; + platforms = platforms.linux; + mainProgram = name; + }; + }; +in { + bitwarden-directory-connector = common { + name = "bitwarden-directory-connector"; + npmBuildScript = "build:dist"; + installPhase = '' + runHook preInstall + + npm exec electron-builder -- \ + --dir \ + -c.electronDist=${electron}/libexec/electron \ + -c.electronVersion=${electron.version} \ + -c.npmRebuild=false + + mkdir -p $out/share/bitwarden-directory-connector $out/bin + cp -r dist/*-unpacked/{locales,resources{,.pak}} $out/share/bitwarden-directory-connector + + makeWrapper ${lib.getExe electron} $out/bin/bitwarden-directory-connector \ + --add-flags $out/share/bitwarden-directory-connector/resources/app.asar \ + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \ + --set-default ELECTRON_IS_DEV 0 \ + --inherit-argv0 + + runHook postInstall + ''; + }; + + bitwarden-directory-connector-cli = common { + name = "bitwarden-directory-connector-cli"; + npmBuildScript = "build:cli:prod"; + installPhase = '' + runHook preInstall + + mkdir -p $out/libexec/bitwarden-directory-connector + cp -R build-cli node_modules $out/libexec/bitwarden-directory-connector + + # needs to be wrapped with nodejs so that it can be executed + chmod +x $out/libexec/bitwarden-directory-connector/build-cli/bwdc.js + mkdir -p $out/bin + ln -s $out/libexec/bitwarden-directory-connector/build-cli/bwdc.js $out/bin/bitwarden-directory-connector-cli + + runHook postInstall + ''; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 43a7714e99e4..25824c8b295c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3577,6 +3577,8 @@ with pkgs; bitwarden-cli = callPackage ../tools/security/bitwarden/cli.nix { }; + inherit (callPackages ../tools/security/bitwarden-directory-connector { }) bitwarden-directory-connector-cli bitwarden-directory-connector; + bitwarden-menu = python3Packages.callPackage ../applications/misc/bitwarden-menu { }; inherit (nodePackages) concurrently; From 1c1cfa073a80354fc2814265f1550bd537c01908 Mon Sep 17 00:00:00 2001 From: nikstur Date: Sat, 3 Feb 2024 22:40:40 +0100 Subject: [PATCH 11/61] nixos/filesystems: init overlayfs --- nixos/modules/module-list.nix | 1 + nixos/modules/tasks/filesystems/overlayfs.nix | 144 ++++++++++++++++++ nixos/tests/all-tests.nix | 1 + nixos/tests/filesystems-overlayfs.nix | 89 +++++++++++ 4 files changed, 235 insertions(+) create mode 100644 nixos/modules/tasks/filesystems/overlayfs.nix create mode 100644 nixos/tests/filesystems-overlayfs.nix diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index c2bcb2f78080..dc672e3f5c8e 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -1519,6 +1519,7 @@ ./tasks/filesystems/jfs.nix ./tasks/filesystems/nfs.nix ./tasks/filesystems/ntfs.nix + ./tasks/filesystems/overlayfs.nix ./tasks/filesystems/reiserfs.nix ./tasks/filesystems/sshfs.nix ./tasks/filesystems/squashfs.nix diff --git a/nixos/modules/tasks/filesystems/overlayfs.nix b/nixos/modules/tasks/filesystems/overlayfs.nix new file mode 100644 index 000000000000..e71ef9ba62e9 --- /dev/null +++ b/nixos/modules/tasks/filesystems/overlayfs.nix @@ -0,0 +1,144 @@ +{ config, lib, pkgs, utils, ... }: + +let + # The scripted initrd contains some magic to add the prefix to the + # paths just in time, so we don't add it here. + sysrootPrefix = fs: + if config.boot.initrd.systemd.enable && (utils.fsNeededForBoot fs) then + "/sysroot" + else + ""; + + # Returns a service that creates the required directories before the mount is + # created. + preMountService = _name: fs: + let + prefix = sysrootPrefix fs; + + escapedMountpoint = utils.escapeSystemdPath (prefix + fs.mountPoint); + mountUnit = "${escapedMountpoint}.mount"; + + upperdir = prefix + fs.overlay.upperdir; + workdir = prefix + fs.overlay.workdir; + in + lib.mkIf (fs.overlay.upperdir != null) + { + "rw-${escapedMountpoint}" = { + requiredBy = [ mountUnit ]; + before = [ mountUnit ]; + unitConfig = { + DefaultDependencies = false; + RequiresMountsFor = "${upperdir} ${workdir}"; + }; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.coreutils}/bin/mkdir -p -m 0755 ${upperdir} ${workdir}"; + }; + }; + }; + + overlayOpts = { config, ... }: { + + options.overlay = { + + lowerdir = lib.mkOption { + type = with lib.types; nullOr (nonEmptyListOf (either str pathInStore)); + default = null; + description = lib.mdDoc '' + The list of path(s) to the lowerdir(s). + + To create a writable overlay, you MUST provide an upperdir and a + workdir. + + You can create a read-only overlay when you provide multiple (at + least 2!) lowerdirs and neither an upperdir nor a workdir. + ''; + }; + + upperdir = lib.mkOption { + type = lib.types.nullOr lib.types.str; + default = null; + description = lib.mdDoc '' + The path to the upperdir. + + If this is null, a read-only overlay is created using the lowerdir. + + If you set this to some value you MUST also set `workdir`. + ''; + }; + + workdir = lib.mkOption { + type = lib.types.nullOr lib.types.str; + default = null; + description = lib.mdDoc '' + The path to the workdir. + + This MUST be set if you set `upperdir`. + ''; + }; + + }; + + config = lib.mkIf (config.overlay.lowerdir != null) { + fsType = "overlay"; + device = lib.mkDefault "overlay"; + + options = + let + prefix = sysrootPrefix config; + + lowerdir = map (s: prefix + s) config.overlay.lowerdir; + upperdir = prefix + config.overlay.upperdir; + workdir = prefix + config.overlay.workdir; + in + [ + "lowerdir=${lib.concatStringsSep ":" lowerdir}" + ] ++ lib.optionals (config.overlay.upperdir != null) [ + "upperdir=${upperdir}" + "workdir=${workdir}" + ] ++ (map (s: "x-systemd.requires-mounts-for=${s}") lowerdir); + }; + + }; +in + +{ + + options = { + + # Merge the overlay options into the fileSystems option. + fileSystems = lib.mkOption { + type = lib.types.attrsOf (lib.types.submodule [ overlayOpts ]); + }; + + }; + + config = + let + overlayFileSystems = lib.filterAttrs (_name: fs: (fs.overlay.lowerdir != null)) config.fileSystems; + initrdFileSystems = lib.filterAttrs (_name: utils.fsNeededForBoot) overlayFileSystems; + userspaceFileSystems = lib.filterAttrs (_name: fs: (!utils.fsNeededForBoot fs)) overlayFileSystems; + in + { + + boot.initrd.availableKernelModules = lib.mkIf (initrdFileSystems != { }) [ "overlay" ]; + + assertions = lib.concatLists (lib.mapAttrsToList + (_name: fs: [ + { + assertion = (fs.overlay.upperdir == null) == (fs.overlay.workdir == null); + message = "You cannot define a `lowerdir` without a `workdir` and vice versa for mount point: ${fs.mountPoint}"; + } + { + assertion = (fs.overlay.lowerdir != null && fs.overlay.upperdir == null) -> (lib.length fs.overlay.lowerdir) >= 2; + message = "A read-only overlay (without an `upperdir`) requires at least 2 `lowerdir`s: ${fs.mountPoint}"; + } + ]) + config.fileSystems); + + boot.initrd.systemd.services = lib.mkMerge (lib.mapAttrsToList preMountService initrdFileSystems); + systemd.services = lib.mkMerge (lib.mapAttrsToList preMountService userspaceFileSystems); + + }; + +} diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 3f9dd173d3bf..153bdf71d9c5 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -301,6 +301,7 @@ in { fenics = handleTest ./fenics.nix {}; ferm = handleTest ./ferm.nix {}; ferretdb = handleTest ./ferretdb.nix {}; + filesystems-overlayfs = runTest ./filesystems-overlayfs.nix; firefox = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox; }; firefox-beta = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-beta; }; firefox-devedition = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-devedition; }; diff --git a/nixos/tests/filesystems-overlayfs.nix b/nixos/tests/filesystems-overlayfs.nix new file mode 100644 index 000000000000..d7cbf640abe4 --- /dev/null +++ b/nixos/tests/filesystems-overlayfs.nix @@ -0,0 +1,89 @@ +{ lib, pkgs, ... }: + +let + initrdLowerdir = pkgs.runCommand "initrd-lowerdir" { } '' + mkdir -p $out + echo "initrd" > $out/initrd.txt + ''; + initrdLowerdir2 = pkgs.runCommand "initrd-lowerdir-2" { } '' + mkdir -p $out + echo "initrd2" > $out/initrd2.txt + ''; + userspaceLowerdir = pkgs.runCommand "userspace-lowerdir" { } '' + mkdir -p $out + echo "userspace" > $out/userspace.txt + ''; + userspaceLowerdir2 = pkgs.runCommand "userspace-lowerdir-2" { } '' + mkdir -p $out + echo "userspace2" > $out/userspace2.txt + ''; +in +{ + + name = "writable-overlays"; + + meta.maintainers = with lib.maintainers; [ nikstur ]; + + nodes.machine = { config, pkgs, ... }: { + boot.initrd.systemd.enable = true; + boot.initrd.availableKernelModules = [ "overlay" ]; + + virtualisation.fileSystems = { + "/initrd-overlay" = { + overlay = { + lowerdir = [ initrdLowerdir ]; + upperdir = "/.rw-initrd-overlay/upper"; + workdir = "/.rw-initrd-overlay/work"; + }; + neededForBoot = true; + }; + "/userspace-overlay" = { + overlay = { + lowerdir = [ userspaceLowerdir ]; + upperdir = "/.rw-userspace-overlay/upper"; + workdir = "/.rw-userspace-overlay/work"; + }; + }; + "/ro-initrd-overlay" = { + overlay.lowerdir = [ + initrdLowerdir + initrdLowerdir2 + ]; + neededForBoot = true; + }; + "/ro-userspace-overlay" = { + overlay.lowerdir = [ + userspaceLowerdir + userspaceLowerdir2 + ]; + }; + }; + }; + + testScript = '' + machine.wait_for_unit("default.target") + + with subtest("Initrd overlay"): + machine.wait_for_file("/initrd-overlay/initrd.txt", 5) + machine.succeed("touch /initrd-overlay/writable.txt") + machine.succeed("findmnt --kernel --types overlay /initrd-overlay") + + with subtest("Userspace overlay"): + machine.wait_for_file("/userspace-overlay/userspace.txt", 5) + machine.succeed("touch /userspace-overlay/writable.txt") + machine.succeed("findmnt --kernel --types overlay /userspace-overlay") + + with subtest("Read only initrd overlay"): + machine.wait_for_file("/ro-initrd-overlay/initrd.txt", 5) + machine.wait_for_file("/ro-initrd-overlay/initrd2.txt", 5) + machine.fail("touch /ro-initrd-overlay/not-writable.txt") + machine.succeed("findmnt --kernel --types overlay /ro-initrd-overlay") + + with subtest("Read only userspace overlay"): + machine.wait_for_file("/ro-userspace-overlay/userspace.txt", 5) + machine.wait_for_file("/ro-userspace-overlay/userspace2.txt", 5) + machine.fail("touch /ro-userspace-overlay/not-writable.txt") + machine.succeed("findmnt --kernel --types overlay /ro-userspace-overlay") + ''; + +} From 1407ec7420dac14e80dba8e6393cec78f2d4571a Mon Sep 17 00:00:00 2001 From: nikstur Date: Sun, 4 Feb 2024 00:29:42 +0100 Subject: [PATCH 12/61] nixos/filesystems: add overlayfs docs --- .../configuration/file-systems.chapter.md | 1 + .../manual/configuration/overlayfs.section.md | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 nixos/doc/manual/configuration/overlayfs.section.md diff --git a/nixos/doc/manual/configuration/file-systems.chapter.md b/nixos/doc/manual/configuration/file-systems.chapter.md index aca978be064d..3dfdd20ac33e 100644 --- a/nixos/doc/manual/configuration/file-systems.chapter.md +++ b/nixos/doc/manual/configuration/file-systems.chapter.md @@ -39,4 +39,5 @@ and non-critical by adding `options = [ "nofail" ];`. ```{=include=} sections luks-file-systems.section.md sshfs-file-systems.section.md +overlayfs.section.md ``` diff --git a/nixos/doc/manual/configuration/overlayfs.section.md b/nixos/doc/manual/configuration/overlayfs.section.md new file mode 100644 index 000000000000..592fb7c2e6f7 --- /dev/null +++ b/nixos/doc/manual/configuration/overlayfs.section.md @@ -0,0 +1,27 @@ +# Overlayfs {#sec-overlayfs} + +NixOS offers a convenient abstraction to create both read-only as well writable +overlays. + +```nix +fileSystems = { + "/writable-overlay" = { + overlay = { + lowerdir = [ writableOverlayLowerdir ]; + upperdir = "/.rw-writable-overlay/upper"; + workdir = "/.rw-writable-overlay/work"; + }; + # Mount the writable overlay in the initrd. + neededForBoot = true; + }; + "/readonly-overlay".overlay.lowerdir = [ + writableOverlayLowerdir + writableOverlayLowerdir2 + ]; +}; +``` + +If `upperdir` and `workdir` are not null, they will be created before the +overlay is mounted. + +To mount an overlay as read-only, you need to provide at least two `lowerdir`s. From bbce103ca8d450a9278dcf494657e03558c6d8ab Mon Sep 17 00:00:00 2001 From: nikstur Date: Sun, 4 Feb 2024 00:29:52 +0100 Subject: [PATCH 13/61] nixos/filesystems: add release notes --- nixos/doc/manual/release-notes/rl-2405.section.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2405.section.md b/nixos/doc/manual/release-notes/rl-2405.section.md index b6af5fc6c3cc..f97e159669e8 100644 --- a/nixos/doc/manual/release-notes/rl-2405.section.md +++ b/nixos/doc/manual/release-notes/rl-2405.section.md @@ -233,6 +233,11 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m - The option [`services.nextcloud.config.dbport`] of the Nextcloud module was removed to match upstream. The port can be specified in [`services.nextcloud.config.dbhost`](#opt-services.nextcloud.config.dbhost). +- A new abstraction to create both read-only as well as writable overlay file + systems was added. Available via + [fileSystems.overlay](#opt-fileSystems._name_.overlay.lowerdir). See also the + [NixOS docs](#sec-overlayfs). + - `stdenv`: The `--replace` flag in `substitute`, `substituteInPlace`, `substituteAll`, `substituteAllStream`, and `substituteStream` is now deprecated if favor of the new `--replace-fail`, `--replace-warn` and `--replace-quiet`. The deprecated `--replace` equates to `--replace-warn`. - New options were added to the dnsdist module to enable and configure a DNSCrypt endpoint (see `services.dnsdist.dnscrypt.enable`, etc.). From bdd0e091c3f0063b774496ac4dfc8f5a61e840ab Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Thu, 8 Feb 2024 04:20:00 +0000 Subject: [PATCH 14/61] postgresqlPackages.timescaledb: 2.13.1 -> 2.14.0 Diff: https://github.com/timescale/timescaledb/compare/2.13.1...2.14.0 Changelog: https://github.com/timescale/timescaledb/blob/2.14.0/CHANGELOG.md --- pkgs/servers/sql/postgresql/ext/timescaledb.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/sql/postgresql/ext/timescaledb.nix b/pkgs/servers/sql/postgresql/ext/timescaledb.nix index 912bca925d80..1eccedf1fda5 100644 --- a/pkgs/servers/sql/postgresql/ext/timescaledb.nix +++ b/pkgs/servers/sql/postgresql/ext/timescaledb.nix @@ -2,7 +2,7 @@ stdenv.mkDerivation rec { pname = "timescaledb${lib.optionalString (!enableUnfree) "-apache"}"; - version = "2.13.1"; + version = "2.14.0"; nativeBuildInputs = [ cmake ]; buildInputs = [ postgresql openssl libkrb5 ]; @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { owner = "timescale"; repo = "timescaledb"; rev = version; - hash = "sha256-7OMeH818f/wu55jQS/6pP+hl7ph2Ul5LiLrSDA47SeM="; + hash = "sha256-CtuJSLhrgvUAyJDnPvCNH2Rizl0W6SuMjWA6wpDqRtE="; }; cmakeFlags = [ "-DSEND_TELEMETRY_DEFAULT=OFF" "-DREGRESS_CHECKS=OFF" "-DTAP_CHECKS=OFF" ] From c89e846875d286aaaf0b4b4adf8f211d185f4d89 Mon Sep 17 00:00:00 2001 From: Andrew Warren-Love Date: Mon, 18 Dec 2023 11:00:08 +0000 Subject: [PATCH 15/61] phpExtensions.swoole: 5.0.3 -> 5.1.2 --- .../php-packages/swoole/default.nix | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/pkgs/development/php-packages/swoole/default.nix b/pkgs/development/php-packages/swoole/default.nix index fa739f16a97d..f9dcb781c0e9 100644 --- a/pkgs/development/php-packages/swoole/default.nix +++ b/pkgs/development/php-packages/swoole/default.nix @@ -1,7 +1,14 @@ -{ lib, stdenv, buildPecl, php, valgrind, pcre2, fetchFromGitHub }: +{ lib +, stdenv +, buildPecl +, php +, valgrind +, pcre2 +, fetchFromGitHub + }: let - version = "5.0.3"; + version = "5.1.2"; in buildPecl { inherit version; pname = "swoole"; @@ -10,19 +17,19 @@ in buildPecl { owner = "swoole"; repo = "swoole-src"; rev = "v${version}"; - sha256 = "sha256-xadseYMbA+llzTf9JFIitJK2iR0dN8vAjv3n9/e7FGs="; + hash = "sha256-WTsntvauiooj081mOoFcK6CVpnCCR/cEQtJbsOIJ/wo="; }; buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ]; - doCheck = true; - checkTarget = "tests"; + # tests require internet access + doCheck = false; - meta = with lib; { + meta = { changelog = "https://github.com/swoole/swoole-src/releases/tag/v${version}"; description = "Coroutine-based concurrency library for PHP"; - license = licenses.asl20; - homepage = "https://www.swoole.co.uk/"; - maintainers = teams.php.members; + homepage = "https://www.swoole.com"; + license = lib.licenses.asl20; + maintainers = lib.teams.php.members; }; } From 4266334da2c32cbf900684a4bb4cd28c416d642a Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Thu, 8 Feb 2024 15:30:42 +0100 Subject: [PATCH 16/61] pythonPackages.molecule-plugins: 23.5.0 -> 23.5.3 --- pkgs/development/python-modules/molecule/plugins.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/molecule/plugins.nix b/pkgs/development/python-modules/molecule/plugins.nix index af36fe3bb60c..dec568c4a936 100644 --- a/pkgs/development/python-modules/molecule/plugins.nix +++ b/pkgs/development/python-modules/molecule/plugins.nix @@ -9,12 +9,12 @@ buildPythonPackage rec { pname = "molecule-plugins"; - version = "23.5.0"; + version = "23.5.3"; format = "pyproject"; src = fetchPypi { inherit pname version; - hash = "sha256-8T6gR7hlDIkmBLgbdjgryAu0riXqULI/MOgf2dWAKv8="; + hash = "sha256-orFDfVMtc24/vG23pp7FM+IzSyEV/5JFoLJ3LtlzjSM="; }; # reverse the dependency From 91413fdf0bef7a7324fba40cbe6d466921633937 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 8 Feb 2024 17:47:15 +0100 Subject: [PATCH 17/61] python311Packages.deebot-client: 5.1.0 -> 5.1.1 Diff: https://github.com/DeebotUniverse/client.py/compare/refs/tags/5.1.0...5.1.1 Changelog: https://github.com/DeebotUniverse/client.py/releases/tag/5.1.1 --- pkgs/development/python-modules/deebot-client/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/deebot-client/default.nix b/pkgs/development/python-modules/deebot-client/default.nix index 7e394e8e27e4..f3fdbef18782 100644 --- a/pkgs/development/python-modules/deebot-client/default.nix +++ b/pkgs/development/python-modules/deebot-client/default.nix @@ -20,7 +20,7 @@ buildPythonPackage rec { pname = "deebot-client"; - version = "5.1.0"; + version = "5.1.1"; pyproject = true; disabled = pythonOlder "3.11"; @@ -29,7 +29,7 @@ buildPythonPackage rec { owner = "DeebotUniverse"; repo = "client.py"; rev = "refs/tags/${version}"; - hash = "sha256-XKsS0Ty3n6rQW+f+4lLCc4i9DBqs3b6R5FEIr8L11UE="; + hash = "sha256-axz31GboqaWAcBU8DtG700Se6rX7VV7eBrQBDazG+Ig="; }; nativeBuildInputs = [ From 11922f0c8a28652319d056457ab8cc1f755c6bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Thu, 8 Feb 2024 19:17:51 +0100 Subject: [PATCH 18/61] eza: 0.18.1 -> 0.18.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christina Sørensen --- pkgs/by-name/ez/eza/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ez/eza/package.nix b/pkgs/by-name/ez/eza/package.nix index 941355e82721..02eb0c397905 100644 --- a/pkgs/by-name/ez/eza/package.nix +++ b/pkgs/by-name/ez/eza/package.nix @@ -17,16 +17,16 @@ rustPlatform.buildRustPackage rec { pname = "eza"; - version = "0.18.1"; + version = "0.18.2"; src = fetchFromGitHub { owner = "eza-community"; repo = "eza"; rev = "v${version}"; - hash = "sha256-8n8U8t2hr4CysjXMPRUVKFQlNpTQL8K6Utd1BCtYOfE="; + hash = "sha256-gVpgI/I91ounqSrEIM7BWJKR4NyRuEU2iK+g8T9L6YY="; }; - cargoHash = "sha256-QNZSF+93JDOt6PknZDy3xOBgeIJbyYHKgM4nM5Xh27c="; + cargoHash = "sha256-q2xVSB3lpsur8P8KF7jDVrEj24q6FRVJbh7bL4teOqQ="; nativeBuildInputs = [ cmake pkg-config installShellFiles pandoc ]; buildInputs = [ zlib ] From 6c0f2822766329a7b838f03cb4cd6202c0fe3d61 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 8 Feb 2024 13:58:44 -0500 Subject: [PATCH 19/61] python311Packages.geoalchemy2: 0.14.3 -> 0.14.4 Diff: https://github.com/geoalchemy/geoalchemy2/compare/refs/tags/0.14.3...0.14.4 Changelog: https://github.com/geoalchemy/geoalchemy2/releases/tag/0.14.4 --- pkgs/development/python-modules/geoalchemy2/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/geoalchemy2/default.nix b/pkgs/development/python-modules/geoalchemy2/default.nix index 39904aec9363..bb4eb7ca664e 100644 --- a/pkgs/development/python-modules/geoalchemy2/default.nix +++ b/pkgs/development/python-modules/geoalchemy2/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "geoalchemy2"; - version = "0.14.3"; + version = "0.14.4"; pyproject = true; disabled = pythonOlder "3.7"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "geoalchemy"; repo = "geoalchemy2"; rev = "refs/tags/${version}"; - hash = "sha256-L3/gLbiEF2VEqyhfVPnREMUPFbf9cD3tqGJ+AbThPkQ="; + hash = "sha256-zMd/hHobFBPre0bZA1e2S9gPWnIkeImZhSySlIDxYsg="; }; nativeBuildInputs = [ From 1c0542939dc22a8eaf9ee14cf94be8ed2fa08740 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 8 Feb 2024 14:00:50 -0500 Subject: [PATCH 20/61] python311Packages.flask-marshmallow: 1.1.0 -> 1.2.0 Diff: https://github.com/marshmallow-code/flask-marshmallow/compare/refs/tags/1.1.0...1.2.0 Changelog: https://github.com/marshmallow-code/flask-marshmallow/releases/tag/1.2.0 --- pkgs/development/python-modules/flask-marshmallow/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/flask-marshmallow/default.nix b/pkgs/development/python-modules/flask-marshmallow/default.nix index 0be4e2ffe251..be74af2d5f9a 100644 --- a/pkgs/development/python-modules/flask-marshmallow/default.nix +++ b/pkgs/development/python-modules/flask-marshmallow/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "flask-marshmallow"; - version = "1.1.0"; + version = "1.2.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "marshmallow-code"; repo = "flask-marshmallow"; rev = "refs/tags/${version}"; - hash = "sha256-+5L4OfBRMkS6WRXT7dI/uuqloc/PZgu+DFvOCinByh8="; + hash = "sha256-QoktZcyVJXkHr8fCVYt3ZkYq52nxCsZu+AgaDyrZHWs="; }; nativeBuildInputs = [ From 107178af926f7541fec1c205cdf7284ea8885901 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 8 Feb 2024 19:42:21 +0000 Subject: [PATCH 21/61] python311Packages.google-cloud-appengine-logging: 1.4.0 -> 1.4.1 --- .../python-modules/google-cloud-appengine-logging/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-appengine-logging/default.nix b/pkgs/development/python-modules/google-cloud-appengine-logging/default.nix index a7a92d057a73..5a75703a9b02 100644 --- a/pkgs/development/python-modules/google-cloud-appengine-logging/default.nix +++ b/pkgs/development/python-modules/google-cloud-appengine-logging/default.nix @@ -13,14 +13,14 @@ buildPythonPackage rec { pname = "google-cloud-appengine-logging"; - version = "1.4.0"; + version = "1.4.1"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-/nT0GNCwHr6+g64hKr8FGtQmkqY2Z345fePUWeANe2Q="; + hash = "sha256-mQXHwww8K77dCxMuKycfyCRzM+vJMdLSOvG7vRG0Nf4="; }; propagatedBuildInputs = [ From accd41f9e832d2dd47877ba3d28464233b590131 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 9 Feb 2024 03:23:39 +0000 Subject: [PATCH 22/61] python311Packages.meilisearch: 0.29.0 -> 0.30.0 --- pkgs/development/python-modules/meilisearch/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/meilisearch/default.nix b/pkgs/development/python-modules/meilisearch/default.nix index 92747d8e9ecf..61c57c8e47d5 100644 --- a/pkgs/development/python-modules/meilisearch/default.nix +++ b/pkgs/development/python-modules/meilisearch/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "meilisearch"; - version = "0.29.0"; + version = "0.30.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -18,7 +18,7 @@ buildPythonPackage rec { owner = "meilisearch"; repo = "meilisearch-python"; rev = "refs/tags/v${version}"; - hash = "sha256-jquaxJ+4/yaPsPqer+v2UY1N60U71ig4nowqm/KRIeA="; + hash = "sha256-gcDJUTg84JugytbUzQzvm3I9YAIboiyvcHe4AcBmpFM="; }; nativeBuildInputs = [ From b5d31c96fd7649b1d4cabd7866f93c6c3a4f7119 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 9 Feb 2024 03:31:32 +0000 Subject: [PATCH 23/61] python311Packages.pubnub: 7.3.2 -> 7.4.0 --- pkgs/development/python-modules/pubnub/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pubnub/default.nix b/pkgs/development/python-modules/pubnub/default.nix index 4a6ae8af2322..bcf34af7728b 100644 --- a/pkgs/development/python-modules/pubnub/default.nix +++ b/pkgs/development/python-modules/pubnub/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "pubnub"; - version = "7.3.2"; + version = "7.4.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = pname; repo = "python"; rev = "refs/tags/v${version}"; - hash = "sha256-J6vwdOI/GM/K0TxRwIgkXibNAc+n9wVCpmMkzMhBepw="; + hash = "sha256-XYovKAk2GEMi7GE/DVtLjMbww7guGkZzDOHC7Z6ZpJo="; }; propagatedBuildInputs = [ From 19e1fe41cecf70953290c20d0dd723fc0e99daa2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 9 Feb 2024 03:46:00 +0000 Subject: [PATCH 24/61] python311Packages.google-cloud-datacatalog: 3.18.0 -> 3.18.1 --- .../python-modules/google-cloud-datacatalog/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-datacatalog/default.nix b/pkgs/development/python-modules/google-cloud-datacatalog/default.nix index f5bdde090be1..018eb4a26cb4 100644 --- a/pkgs/development/python-modules/google-cloud-datacatalog/default.nix +++ b/pkgs/development/python-modules/google-cloud-datacatalog/default.nix @@ -15,14 +15,14 @@ buildPythonPackage rec { pname = "google-cloud-datacatalog"; - version = "3.18.0"; + version = "3.18.1"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-rqWuOJlyB2EN3+qydRMJHLwK7RAFxUT7eEUZiAfOseE="; + hash = "sha256-xjf6yWXgfJFEHw1lYSryfe86UMsM1Y4fGRffDTne20U="; }; nativeBuildInputs = [ From 7bbe0d748c4993f0da700cb641da6eb7242827ec Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 9 Feb 2024 04:37:09 +0000 Subject: [PATCH 25/61] php81Extensions.phalcon: 5.6.0 -> 5.6.1 --- pkgs/development/php-packages/phalcon/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/php-packages/phalcon/default.nix b/pkgs/development/php-packages/phalcon/default.nix index 95bd2d894457..57affde8d4e2 100644 --- a/pkgs/development/php-packages/phalcon/default.nix +++ b/pkgs/development/php-packages/phalcon/default.nix @@ -2,13 +2,13 @@ buildPecl rec { pname = "phalcon"; - version = "5.6.0"; + version = "5.6.1"; src = fetchFromGitHub { owner = "phalcon"; repo = "cphalcon"; rev = "v${version}"; - hash = "sha256-EtwhWRBqJOMndmsy+Rgc4MVjFZg/Fm97qkSuTGxqHhI="; + hash = "sha256-1dCtj3pJGOY7sRe6xx8JgPPLSj/6qMemUnqrt9guPIk="; }; internalDeps = [ php.extensions.session php.extensions.pdo ]; From a603808a5f4292b0c7bd53ae48c3b5cb24af1c97 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 9 Feb 2024 04:53:32 +0000 Subject: [PATCH 26/61] gpt4all-chat: 2.6.2 -> 2.7.0 --- pkgs/by-name/gp/gpt4all-chat/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/gp/gpt4all-chat/package.nix b/pkgs/by-name/gp/gpt4all-chat/package.nix index 84a4de626204..272738a381da 100644 --- a/pkgs/by-name/gp/gpt4all-chat/package.nix +++ b/pkgs/by-name/gp/gpt4all-chat/package.nix @@ -11,11 +11,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gpt4all-chat"; - version = "2.6.2"; + version = "2.7.0"; src = fetchFromGitHub { fetchSubmodules = true; - hash = "sha256-BQE4UQEOOUAh0uGwQf7Q9D30s+aoGFyyMH6EI/WVIkc="; + hash = "sha256-l9Do58Cld9n89J+px8RPjyioIa0Bo3qGSQe7QEGcZr8="; owner = "nomic-ai"; repo = "gpt4all"; rev = "v${finalAttrs.version}"; From 31f129d2edc5da658a3e6d4b8d747458c089a981 Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Fri, 9 Feb 2024 00:07:53 -0500 Subject: [PATCH 27/61] slimserver: 8.3.1 -> 8.4.0 https://github.com/Logitech/slimserver/blob/8.4.0/Changelog8.html --- pkgs/servers/slimserver/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/slimserver/default.nix b/pkgs/servers/slimserver/default.nix index c340ee1d9d21..8675944327d0 100644 --- a/pkgs/servers/slimserver/default.nix +++ b/pkgs/servers/slimserver/default.nix @@ -22,13 +22,13 @@ let in perlPackages.buildPerlPackage rec { pname = "slimserver"; - version = "8.3.1"; + version = "8.4.0"; src = fetchFromGitHub { owner = "Logitech"; repo = "slimserver"; rev = version; - hash = "sha256-yMFOwh/oPiJnUsKWBGvd/GZLjkWocMAUK0r+Hx/SUPo="; + hash = "sha256-92mKchgAWRIrNOeK/zXUYRqIAk6THdtz1zQe3fg2kE0="; }; nativeBuildInputs = [ makeWrapper ]; From 37eb6b5c78f1212ac5e627b1f1a20316373e89e6 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 9 Feb 2024 05:30:29 +0000 Subject: [PATCH 28/61] yq-go: 4.40.5 -> 4.40.7 --- pkgs/development/tools/yq-go/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/yq-go/default.nix b/pkgs/development/tools/yq-go/default.nix index 350211001ad9..fb627f52e011 100644 --- a/pkgs/development/tools/yq-go/default.nix +++ b/pkgs/development/tools/yq-go/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "yq-go"; - version = "4.40.5"; + version = "4.40.7"; src = fetchFromGitHub { owner = "mikefarah"; repo = "yq"; rev = "v${version}"; - hash = "sha256-CCgertXgnA6q259Ngmy4EBD6GDuvSb0bREDddR2ht8E="; + hash = "sha256-VvA6PYJYRejGlYDb/gyHDQSNOwDWSE7vXPqYGrVLtko="; }; - vendorHash = "sha256-SQGJj5syay4LllqmK/cRoZbprgDQhLGdQM3T1m/dZsI="; + vendorHash = "sha256-5jc9AQ1T4818kvAF6SU6JEdCQWt1gRJnESXRMGvqrB0="; nativeBuildInputs = [ installShellFiles ]; From 23bd893dcca75fdf3c2ad3599cc472d8a2a6c809 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 9 Feb 2024 05:35:14 +0000 Subject: [PATCH 29/61] python312Packages.rflink: 0.0.65 -> 0.0.66 --- pkgs/development/python-modules/rflink/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/rflink/default.nix b/pkgs/development/python-modules/rflink/default.nix index fc829a40e5c8..354c66c41adc 100644 --- a/pkgs/development/python-modules/rflink/default.nix +++ b/pkgs/development/python-modules/rflink/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "rflink"; - version = "0.0.65"; + version = "0.0.66"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "aequitas"; repo = "python-rflink"; rev = "refs/tags/${version}"; - hash = "sha256-DUnhuA84nkmYkREa7vUiyLg7JUdEEeLewg3vFFlcar8="; + hash = "sha256-n6VLa0xX1qewMS7Kv+kiitezWRbRvDJRNuOmA7IV6u0="; }; propagatedBuildInputs = [ From 79893e0d5fca977bb8920cbab0058233e0a11504 Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Fri, 9 Feb 2024 00:35:45 -0500 Subject: [PATCH 30/61] slimserver: add changelog --- pkgs/servers/slimserver/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/slimserver/default.nix b/pkgs/servers/slimserver/default.nix index 8675944327d0..1703c03dee26 100644 --- a/pkgs/servers/slimserver/default.nix +++ b/pkgs/servers/slimserver/default.nix @@ -150,8 +150,9 @@ perlPackages.buildPerlPackage rec { meta = with lib; { homepage = "https://github.com/Logitech/slimserver"; + changelog = "https://github.com/Logitech/slimserver/blob/${version}/Changelog${lib.versions.major version}.html"; description = "Server for Logitech Squeezebox players. This server is also called Logitech Media Server"; - # the firmware is not under a free license, but not included in the default package + # the firmware is not under a free license, so we do not include firmware in the default package # https://github.com/Logitech/slimserver/blob/public/8.3/License.txt license = if enableUnfreeFirmware then licenses.unfree else licenses.gpl2Only; mainProgram = "slimserver"; From ea690599570983af5cda17bfbf8c7e8b79b36ced Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 9 Feb 2024 06:27:12 +0000 Subject: [PATCH 31/61] proxify: 0.0.12 -> 0.0.13 --- pkgs/tools/networking/proxify/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/proxify/default.nix b/pkgs/tools/networking/proxify/default.nix index 19c9828ea84a..3702c0dc5a28 100644 --- a/pkgs/tools/networking/proxify/default.nix +++ b/pkgs/tools/networking/proxify/default.nix @@ -5,16 +5,16 @@ buildGoModule rec { pname = "proxify"; - version = "0.0.12"; + version = "0.0.13"; src = fetchFromGitHub { owner = "projectdiscovery"; repo = "proxify"; rev = "refs/tags/v${version}"; - hash = "sha256-j2FuyoTCc9mcoI683xZkMCL6QXy0dGEheNaormlgUvY="; + hash = "sha256-5sicN/Z26nkxtU/6vDkEMBxyRNHIP7hQ+BvzHuQqBhw="; }; - vendorHash = "sha256-kPj3KBi8Mbsj4BW7Vf1w4mW8EN07FuqgFhAkkLCl8Bc="; + vendorHash = "sha256-90wNln2C5/K1WfX8rv6kKQpHMpxW3hv5zpZpCSHy8ys="; meta = with lib; { description = "Proxy tool for HTTP/HTTPS traffic capture"; From 91a1cb44836d4249486bedf189a63e8618e40420 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 9 Feb 2024 06:32:20 +0000 Subject: [PATCH 32/61] openapi-generator-cli: 7.2.0 -> 7.3.0 --- pkgs/tools/networking/openapi-generator-cli/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/openapi-generator-cli/default.nix b/pkgs/tools/networking/openapi-generator-cli/default.nix index e9572bf45960..ec6e4f28ab95 100644 --- a/pkgs/tools/networking/openapi-generator-cli/default.nix +++ b/pkgs/tools/networking/openapi-generator-cli/default.nix @@ -1,7 +1,7 @@ { callPackage, lib, stdenv, fetchurl, jre, makeWrapper }: let this = stdenv.mkDerivation (finalAttrs: { - version = "7.2.0"; + version = "7.3.0"; pname = "openapi-generator-cli"; jarfilename = "${finalAttrs.pname}-${finalAttrs.version}.jar"; @@ -12,7 +12,7 @@ let this = stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "mirror://maven/org/openapitools/${finalAttrs.pname}/${finalAttrs.version}/${finalAttrs.jarfilename}"; - sha256 = "sha256-HPDIDeEsD9yFlCicGeQUtAIQjvELjdC/2hlTFRNBq10="; + sha256 = "sha256-h5wVNAp1oZp+cg78JCwyI+DkIHsGlNbRzqXH3YfPHM4="; }; dontUnpack = true; From 07e40e3cffe0a94220348b03604a4358cafe9dd3 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 9 Feb 2024 07:20:14 +0000 Subject: [PATCH 33/61] qownnotes: 24.1.5 -> 24.2.0 --- pkgs/applications/office/qownnotes/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/office/qownnotes/default.nix b/pkgs/applications/office/qownnotes/default.nix index 0476d6735dc6..faab6627816a 100644 --- a/pkgs/applications/office/qownnotes/default.nix +++ b/pkgs/applications/office/qownnotes/default.nix @@ -19,14 +19,14 @@ let pname = "qownnotes"; appname = "QOwnNotes"; - version = "24.1.5"; + version = "24.2.0"; in stdenv.mkDerivation { inherit pname version; src = fetchurl { url = "https://github.com/pbek/QOwnNotes/releases/download/v${version}/qownnotes-${version}.tar.xz"; - hash = "sha256-iw3MdsS1i7B8RXZk2GXwiOReSUC1IX5z0MTEk9B4nMM="; + hash = "sha256-mk7yFlL+NiTZ0JtSY3y/Y1NrN1QYcBxveMImv1zB1l8="; }; nativeBuildInputs = [ From effe9fb3010c64b130ebf52fe2ac46fd3e324e04 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 9 Feb 2024 07:20:15 +0000 Subject: [PATCH 34/61] sigtop: 0.8.0 -> 0.9.0 --- pkgs/tools/backup/sigtop/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/backup/sigtop/default.nix b/pkgs/tools/backup/sigtop/default.nix index ce6c7fde8d6d..4d437dd21302 100644 --- a/pkgs/tools/backup/sigtop/default.nix +++ b/pkgs/tools/backup/sigtop/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { name = "sigtop"; - version = "0.8.0"; + version = "0.9.0"; src = fetchFromGitHub { owner = "tbvdm"; repo = "sigtop"; rev = "v${version}"; - sha256 = "sha256-vFs6/b2ypwMXDgmkZDgfKPqW0GRh9A2t4QQvkUdhYQw="; + sha256 = "sha256-+TV3mlFW3SxgLyXyOPWKhMdkPf/ZTK2/EMWaZHC82YM="; }; - vendorHash = "sha256-H43XOupVicLpYfkWNjArpSxQWcFqh9h2Zb6zGZ5xtfs="; + vendorHash = "sha256-kkRmyWYrWDq96fECe2YMsDjRZPX2K0jKFitMJycaVVA="; makeFlags = [ "PREFIX=\${out}" From a6a75fa3ac47e1f7a3a08dc79a8a65eb4de11cba Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 08:28:13 +0100 Subject: [PATCH 35/61] python311Packages.google-cloud-appengine-logging: refactor --- .../google-cloud-appengine-logging/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/google-cloud-appengine-logging/default.nix b/pkgs/development/python-modules/google-cloud-appengine-logging/default.nix index 5a75703a9b02..2754c32c3c97 100644 --- a/pkgs/development/python-modules/google-cloud-appengine-logging/default.nix +++ b/pkgs/development/python-modules/google-cloud-appengine-logging/default.nix @@ -9,12 +9,13 @@ , pytest-asyncio , pytestCheckHook , pythonOlder +, setuptools }: buildPythonPackage rec { pname = "google-cloud-appengine-logging"; version = "1.4.1"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -23,6 +24,10 @@ buildPythonPackage rec { hash = "sha256-mQXHwww8K77dCxMuKycfyCRzM+vJMdLSOvG7vRG0Nf4="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ google-api-core grpc-google-iam-v1 From 669c40f60184cd59bfec96aeaa5ce42049f07945 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 08:29:06 +0100 Subject: [PATCH 36/61] python311Packages.pubnub: refactor --- pkgs/development/python-modules/pubnub/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pubnub/default.nix b/pkgs/development/python-modules/pubnub/default.nix index bcf34af7728b..4ffe4f45b3e8 100644 --- a/pkgs/development/python-modules/pubnub/default.nix +++ b/pkgs/development/python-modules/pubnub/default.nix @@ -10,12 +10,13 @@ , pytest-asyncio , requests , pythonOlder +, setuptools }: buildPythonPackage rec { pname = "pubnub"; version = "7.4.0"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -26,6 +27,10 @@ buildPythonPackage rec { hash = "sha256-XYovKAk2GEMi7GE/DVtLjMbww7guGkZzDOHC7Z6ZpJo="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ aiohttp cbor2 From 04f9a8d8d7e4470b9c82bd39534dbe58f5d6afec Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 08:29:53 +0100 Subject: [PATCH 37/61] python311Packages.boto3-stubs: 1.34.37 -> 1.34.38 --- pkgs/development/python-modules/boto3-stubs/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/boto3-stubs/default.nix b/pkgs/development/python-modules/boto3-stubs/default.nix index a934c9e312bb..d337605af13a 100644 --- a/pkgs/development/python-modules/boto3-stubs/default.nix +++ b/pkgs/development/python-modules/boto3-stubs/default.nix @@ -365,14 +365,14 @@ buildPythonPackage rec { pname = "boto3-stubs"; - version = "1.34.37"; + version = "1.34.38"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-xmGMcSa6wDN8BeFh6cQo/rxX1qJNf/Yt5G5ndh9ALFc="; + hash = "sha256-0eS0vVozFiDs3yXKEParV3EUrTxUoPSLHziz+GJ1eZA="; }; nativeBuildInputs = [ From 067742ea341287ecf607c56c4f350cd987d22029 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 08:30:14 +0100 Subject: [PATCH 38/61] python311Packages.botocore-stubs: 1.34.37 -> 1.34.38 --- pkgs/development/python-modules/botocore-stubs/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/botocore-stubs/default.nix b/pkgs/development/python-modules/botocore-stubs/default.nix index 3361e6708439..6c9dffa5e063 100644 --- a/pkgs/development/python-modules/botocore-stubs/default.nix +++ b/pkgs/development/python-modules/botocore-stubs/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "botocore-stubs"; - version = "1.34.37"; + version = "1.34.38"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -17,7 +17,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "botocore_stubs"; inherit version; - hash = "sha256-1rzqimhyqkbTiQJ9xcAiJB/QogR6i4WKpQBeYVHtMKc="; + hash = "sha256-2oA3lMD3BMZuQI/oCaFDzMnH6p4zXpBmKtp9AfweUgg="; }; nativeBuildInputs = [ From c35329435287a0b9a0e77e0d07cd7f14a353e92b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 08:32:08 +0100 Subject: [PATCH 39/61] python311Packages.faraday-agent-parameters-types: 1.3.1 -> 1.4.0 Changelog: https://github.com/infobyte/faraday_agent_parameters_types/blob/1.4.0/CHANGELOG.md --- .../default.nix | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix b/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix index 7e7624020d5f..ca7a90aa647a 100644 --- a/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix +++ b/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix @@ -5,21 +5,31 @@ , packaging , pytestCheckHook , pythonOlder +, setuptools }: buildPythonPackage rec { pname = "faraday-agent-parameters-types"; - version = "1.3.1"; - format = "setuptools"; + version = "1.4.0"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { pname = "faraday_agent_parameters_types"; inherit version; - hash = "sha256-yWDZPa9+DZh2Bj9IIeIVFpAt9nhQOk2tTZh02difsCs="; + hash = "sha256-pene97VKOX8mZEQgHkOBDu72Dpww2D9nDjA94s5F9rM="; }; + postPatch = '' + substituteInPlace setup.py \ + --replace-warn '"pytest-runner",' "" + ''; + + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ marshmallow packaging @@ -29,11 +39,6 @@ buildPythonPackage rec { pytestCheckHook ]; - postPatch = '' - substituteInPlace setup.py \ - --replace '"pytest-runner",' "" - ''; - pythonImportsCheck = [ "faraday_agent_parameters_types" "faraday_agent_parameters_types.utils" From 5c966ddcc6f4d4496033d488755f041b93d521c8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 08:33:31 +0100 Subject: [PATCH 40/61] python311Packages.faraday-plugins: 1.15.1 -> 1.16.0 Diff: https://github.com/infobyte/faraday_plugins/compare/refs/tags/1.15.1...1.16.0 Changelog: https://github.com/infobyte/faraday_plugins/releases/tag/1.16.0 --- .../python-modules/faraday-plugins/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/faraday-plugins/default.nix b/pkgs/development/python-modules/faraday-plugins/default.nix index e3c96089cefe..c1c5dbac14fe 100644 --- a/pkgs/development/python-modules/faraday-plugins/default.nix +++ b/pkgs/development/python-modules/faraday-plugins/default.nix @@ -12,14 +12,15 @@ , pythonOlder , pytz , requests +, setuptools , simplejson , tabulate }: buildPythonPackage rec { pname = "faraday-plugins"; - version = "1.15.1"; - format = "setuptools"; + version = "1.16.0"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -27,14 +28,18 @@ buildPythonPackage rec { owner = "infobyte"; repo = "faraday_plugins"; rev = "refs/tags/${version}"; - hash = "sha256-cJ7gFE8zTN+7fp4EY8ZRwjS8i0r+8WaIH/EdY89nZew="; + hash = "sha256-1haWRuWK9WCgdR4geT2w3E95+CapBYDohGowUmnJ2H4="; }; postPatch = '' substituteInPlace setup.py \ - --replace "version=version," "version='${version}'," + --replace-warn "version=version," "version='${version}'," ''; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ beautifulsoup4 click From 438aabfa8ddd0af9eb2774d25480e3cbdd5ad91a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 08:35:15 +0100 Subject: [PATCH 41/61] python311Packages.findimports: 2.3.0 -> 2.4.0 Diff: https://github.com/mgedmin/findimports/compare/refs/tags/2.3.0...2.4.0 Changelog: https://github.com/mgedmin/findimports/blob/2.4.0/CHANGES.rst --- pkgs/development/python-modules/findimports/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/findimports/default.nix b/pkgs/development/python-modules/findimports/default.nix index ff6c6579d738..58c0fb99fbbc 100644 --- a/pkgs/development/python-modules/findimports/default.nix +++ b/pkgs/development/python-modules/findimports/default.nix @@ -7,7 +7,7 @@ buildPythonPackage rec { pname = "findimports"; - version = "2.3.0"; + version = "2.4.0"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -16,7 +16,7 @@ buildPythonPackage rec { owner = "mgedmin"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-yA1foeGhgOXZArc/nZfS1tbGyONXJZ9lW+Zcx7hCedM="; + hash = "sha256-ar05DYSc/raYC1RJyLCxDYnd7Zjx20aczywlb6wc67Y="; }; pythonImportsCheck = [ From 8a25604c031a5979049a096d4c13544ff68c79e5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 08:37:39 +0100 Subject: [PATCH 42/61] python311Packages.findimports: refactor --- .../python-modules/findimports/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/findimports/default.nix b/pkgs/development/python-modules/findimports/default.nix index 58c0fb99fbbc..b809d7835d96 100644 --- a/pkgs/development/python-modules/findimports/default.nix +++ b/pkgs/development/python-modules/findimports/default.nix @@ -3,22 +3,27 @@ , fetchFromGitHub , python , pythonOlder +, setuptools }: buildPythonPackage rec { pname = "findimports"; version = "2.4.0"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "mgedmin"; - repo = pname; + repo = "findimports"; rev = "refs/tags/${version}"; hash = "sha256-ar05DYSc/raYC1RJyLCxDYnd7Zjx20aczywlb6wc67Y="; }; + nativeBuildInputs = [ + setuptools + ]; + pythonImportsCheck = [ "findimports" ]; From 66bf7102b0c6f1b26c89b6c3bfbd772f131aae4c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 08:38:23 +0100 Subject: [PATCH 43/61] python311Packages.evohome-async: 0.4.17 -> 0.4.18 Diff: https://github.com/zxdavb/evohome-async/compare/refs/tags/0.4.17...0.4.18 --- pkgs/development/python-modules/evohome-async/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/evohome-async/default.nix b/pkgs/development/python-modules/evohome-async/default.nix index 0ce780d0f7aa..03a0bcb210bb 100644 --- a/pkgs/development/python-modules/evohome-async/default.nix +++ b/pkgs/development/python-modules/evohome-async/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "evohome-async"; - version = "0.4.17"; + version = "0.4.18"; pyproject = true; disabled = pythonOlder "3.11"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "zxdavb"; repo = "evohome-async"; rev = "refs/tags/${version}"; - hash = "sha256-8Dl23U0LynNPxDpo79CmA4H8o2knU2rrtNYwDPZBVRQ="; + hash = "sha256-EXgq74/RfQ9AHlyZlDLfXtKFgYg37WA1Q3x3g+W9lz0="; }; nativeBuildInputs = [ From ab6b144049644e7ee1577933c7081672f378dc37 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 08:39:19 +0100 Subject: [PATCH 44/61] python311Packages.griffe: 0.40.0 -> 0.40.1 Diff: https://github.com/mkdocstrings/griffe/compare/refs/tags/0.40.0...0.40.1 Changelog: https://github.com/mkdocstrings/griffe/blob/0.40.1/CHANGELOG.md --- pkgs/development/python-modules/griffe/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/griffe/default.nix b/pkgs/development/python-modules/griffe/default.nix index 3c2ebb007713..d3e9ca2ae7f4 100644 --- a/pkgs/development/python-modules/griffe/default.nix +++ b/pkgs/development/python-modules/griffe/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "griffe"; - version = "0.40.0"; + version = "0.40.1"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "mkdocstrings"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-VUQmyNO2e4SoXzGbd751l7TtRgvaiWOr75gSGwKGPUI="; + hash = "sha256-DaLxGEwR2Z9IEkKbLkOy7Q3dvvmwTNBNMzYxNoeZMJE="; }; nativeBuildInputs = [ From 1c04fd269fb0ccbaa3ef913a229e9cdb33996b50 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 08:43:16 +0100 Subject: [PATCH 45/61] python311Packages.pycfmodel: 0.21.2 -> 0.22.0 Diff: https://github.com/Skyscanner/pycfmodel/compare/refs/tags/v0.21.2...v0.22.0 Changelog: https://github.com/Skyscanner/pycfmodel/releases/tag/v0.22.0 --- pkgs/development/python-modules/pycfmodel/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pycfmodel/default.nix b/pkgs/development/python-modules/pycfmodel/default.nix index f169f91b1a47..cd847241f60c 100644 --- a/pkgs/development/python-modules/pycfmodel/default.nix +++ b/pkgs/development/python-modules/pycfmodel/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , fetchFromGitHub , httpx -, pydantic +, pydantic_1 , pytestCheckHook , pythonOlder , setuptools @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "pycfmodel"; - version = "0.21.2"; + version = "0.22.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "Skyscanner"; repo = "pycfmodel"; rev = "refs/tags/v${version}"; - hash = "sha256-nQIZ9fwk8CdqJawYsU5qiu9xxhi9X0IxhlPohHUDTL8="; + hash = "sha256-NLi94W99LhrBXNFItMfJczV9EZlgvmvkavrfDQJs0YU="; }; nativeBuildInputs = [ @@ -27,7 +27,7 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - pydantic + pydantic_1 ]; nativeCheckInputs = [ @@ -54,6 +54,5 @@ buildPythonPackage rec { changelog = "https://github.com/Skyscanner/pycfmodel/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; - broken = versionAtLeast pydantic.version "2"; }; } From c6e46679703f4072ff46c0d1cdba2c7a0b2a05f3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 08:47:07 +0100 Subject: [PATCH 46/61] cfripper: 1.15.2 -> 1.15.3 Diff: https://github.com/Skyscanner/cfripper/compare/refs/tags/v1.15.2...v1.15.3 Changelog: https://github.com/Skyscanner/cfripper/releases/tag/v1.15.3 --- pkgs/tools/security/cfripper/default.nix | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/security/cfripper/default.nix b/pkgs/tools/security/cfripper/default.nix index 080fc8ae3e32..5e13a2df14c8 100644 --- a/pkgs/tools/security/cfripper/default.nix +++ b/pkgs/tools/security/cfripper/default.nix @@ -5,15 +5,25 @@ python3.pkgs.buildPythonApplication rec { pname = "cfripper"; - version = "1.15.2"; + version = "1.15.3"; + pyproject = true; src = fetchFromGitHub { owner = "Skyscanner"; - repo = pname; - rev = "refs/tags/${version}"; + repo = "cfripper"; + rev = "refs/tags/v${version}"; hash = "sha256-SmD3Dq5LicPRe3lWFsq4zqM/yDZ1LsgRwSUA5/RbN9I="; }; + postPatch = '' + substituteInPlace setup.py \ + --replace "pluggy~=0.13.1" "pluggy" \ + ''; + + nativeBuildInputs = with python3.pkgs; [ + setuptools + ]; + propagatedBuildInputs = with python3.pkgs; [ boto3 cfn-flip @@ -30,13 +40,6 @@ python3.pkgs.buildPythonApplication rec { pytestCheckHook ]; - postPatch = '' - substituteInPlace setup.py \ - --replace "click~=7.1.1" "click" \ - --replace "pluggy~=0.13.1" "pluggy" \ - --replace "pydash~=4.7.6" "pydash" - ''; - disabledTestPaths = [ # Tests are failing "tests/test_boto3_client.py" @@ -55,6 +58,7 @@ python3.pkgs.buildPythonApplication rec { meta = with lib; { description = "Tool for analysing CloudFormation templates"; homepage = "https://github.com/Skyscanner/cfripper"; + changelog = "https://github.com/Skyscanner/cfripper/releases/tag/v${version}"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; }; From 09e6cac71aff461a8f349bba75a183de707702f6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 09:08:44 +0100 Subject: [PATCH 47/61] python311Packages.pymodbus: 3.5.4 -> 3.6.4 Diff: https://github.com/pymodbus-dev/pymodbus/compare/refs/tags/v3.5.4...v3.6.4 Changelog: https://github.com/pymodbus-dev/pymodbus/releases/tag/v3.6.4 --- pkgs/development/python-modules/pymodbus/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pymodbus/default.nix b/pkgs/development/python-modules/pymodbus/default.nix index 4c6676ae97a0..a9c425dfabef 100644 --- a/pkgs/development/python-modules/pymodbus/default.nix +++ b/pkgs/development/python-modules/pymodbus/default.nix @@ -19,7 +19,7 @@ buildPythonPackage rec { pname = "pymodbus"; - version = "3.5.4"; + version = "3.6.4"; pyproject = true; disabled = pythonOlder "3.8"; @@ -28,7 +28,7 @@ buildPythonPackage rec { owner = "pymodbus-dev"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-IgGDYNIRS39t8vHkJSGnDGCTKxpeIYZyedLzyS5pOI0="; + hash = "sha256-SYdjM3wFZD+bAOd0vRFe6N5UwF+1Wv97ooihJjKV8K0="; }; nativeBuildInputs = [ From 565f186c833fb83a08b67ebb0c8f136e2831177e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 09:11:57 +0100 Subject: [PATCH 48/61] python311Packages.py-aosmith: 1.0.6 -> 1.0.8 Diff: https://github.com/bdr99/py-aosmith/compare/refs/tags/1.0.6...1.0.8 Changelog: https://github.com/bdr99/py-aosmith/releases/tag/1.0.8 --- .../development/python-modules/py-aosmith/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/py-aosmith/default.nix b/pkgs/development/python-modules/py-aosmith/default.nix index 28faca5e96fb..b21cdda8f662 100644 --- a/pkgs/development/python-modules/py-aosmith/default.nix +++ b/pkgs/development/python-modules/py-aosmith/default.nix @@ -1,14 +1,15 @@ { lib +, aiohttp , buildPythonPackage -, pythonOlder , fetchFromGitHub , poetry-core -, aiohttp +, pythonOlder +, tenacity }: buildPythonPackage rec { pname = "py-aosmith"; - version = "1.0.6"; + version = "1.0.8"; pyproject = true; disabled = pythonOlder "3.10"; @@ -17,7 +18,7 @@ buildPythonPackage rec { owner = "bdr99"; repo = "py-aosmith"; rev = "refs/tags/${version}"; - hash = "sha256-4KODe+urqYMbN0+tNwQnvO3A9Zc/Xdo4uhJErn3BYS4="; + hash = "sha256-TjBjyWxBPrZEY/o1DZ+GiFTHTW37WwFN0oyJSyGru28="; }; nativeBuildInputs = [ @@ -26,6 +27,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ aiohttp + tenacity ]; pythonImportsCheck = [ "py_aosmith" ]; @@ -36,6 +38,7 @@ buildPythonPackage rec { meta = { description = "Python client library for A. O. Smith water heaters"; homepage = "https://github.com/bdr99/py-aosmith"; + changelog = "https://github.com/bdr99/py-aosmith/releases/tag/${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; }; From bffdd5bcf58d54e03e941e7a1521693a71113397 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Feb 2024 09:12:38 +0100 Subject: [PATCH 49/61] python311Packages.pymicrobot: 0.0.10 -> 0.0.12 Changelog: https://github.com/spycle/pyMicroBot/releases/tag/v0.0.12 --- pkgs/development/python-modules/pymicrobot/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pymicrobot/default.nix b/pkgs/development/python-modules/pymicrobot/default.nix index 41025212dcb7..723eb220b587 100644 --- a/pkgs/development/python-modules/pymicrobot/default.nix +++ b/pkgs/development/python-modules/pymicrobot/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "pymicrobot"; - version = "0.0.10"; + version = "0.0.12"; pyproject = true; disabled = pythonOlder "3.9"; @@ -17,7 +17,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "PyMicroBot"; inherit version; - hash = "sha256-A7qfRl958x0vsr/sxvK50M7fGUBFhdGiA+tbHOdk8gE="; + hash = "sha256-Ysg97ApwbraRn19Mn5pJsg91dzf/njnNZiBJQKZqIbQ="; }; nativeBuildInputs = [ From 98f6d2d5c43f4318ab89c9db676aa2856c56bdf0 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Tue, 23 Jan 2024 09:55:42 +0100 Subject: [PATCH 50/61] bkcrack: 1.6.0 -> 1.6.1 --- pkgs/tools/security/bkcrack/default.nix | 26 +++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/security/bkcrack/default.nix b/pkgs/tools/security/bkcrack/default.nix index 6345cbdc9602..afc18759c78d 100644 --- a/pkgs/tools/security/bkcrack/default.nix +++ b/pkgs/tools/security/bkcrack/default.nix @@ -2,33 +2,43 @@ , stdenv , fetchFromGitHub , cmake +, nix-update-script }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "bkcrack"; - version = "1.6.0"; + version = "1.6.1"; src = fetchFromGitHub { owner = "kimci86"; - repo = pname; - rev = "v${version}"; - hash = "sha256-VfPRX9lOPyen8CujiBtTCbD5e7xd9X2OQ1uZ6JWKwtY="; + repo = "bkcrack"; + rev = "v${finalAttrs.version}"; + hash = "sha256-x7JK7+DcD2uSWZRTJQPGCcF2mHBlu6FwYUbuYzbvD+s="; }; + passthru.updateScript = nix-update-script { }; + nativeBuildInputs = [ cmake ]; + cmakeFlags = [ + "-DBKCRACK_BUILD_TESTING=${if finalAttrs.doCheck then "ON" else "OFF"}" + ]; + postInstall = '' - mkdir -p $out/bin $out/share/licenses/bkcrack + mkdir -p $out/bin $out/share/doc/bkcrack $out/share/licenses/bkcrack mv $out/bkcrack $out/bin/ mv $out/license.txt $out/share/licenses/bkcrack - rm -r $out/example $out/tools $out/readme.md + mv $out/example $out/tools $out/readme.md $out/share/doc/bkcrack ''; + doCheck = true; + meta = with lib; { description = "Crack legacy zip encryption with Biham and Kocher's known plaintext attack"; homepage = "https://github.com/kimci86/bkcrack"; license = licenses.zlib; platforms = platforms.unix; maintainers = with maintainers; [ erdnaxe ]; + mainProgram = "bkcrack"; }; -} +}) From b1f6e081777d7b601771a3cf0c40ca41b9b215c7 Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Fri, 9 Feb 2024 10:47:08 +0100 Subject: [PATCH 51/61] doc: add link to Nix manual --- nixos/modules/services/misc/nix-gc.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/services/misc/nix-gc.nix b/nixos/modules/services/misc/nix-gc.nix index de6bd76c7eb9..656cbad81373 100644 --- a/nixos/modules/services/misc/nix-gc.nix +++ b/nixos/modules/services/misc/nix-gc.nix @@ -64,8 +64,7 @@ in example = "--max-freed $((64 * 1024**3))"; type = lib.types.singleLineStr; description = lib.mdDoc '' - Options given to {file}`nix-collect-garbage` when the - garbage collector is run automatically. + Options given to [`nix-collect-garbage`](https://nixos.org/manual/nix/stable/command-ref/nix-collect-garbage) when the garbage collector is run automatically. ''; }; From c863ce3ae2976a7f565d5621a75bb3c6cdcfb177 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Wed, 24 Jan 2024 08:07:22 +0200 Subject: [PATCH 52/61] lzlib: pkgs/development/libraries/lzlib -> pkgs/by-name/lz/lzlib --- .../lzlib/default.nix => by-name/lz/lzlib/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/lzlib/default.nix => by-name/lz/lzlib/package.nix} (100%) diff --git a/pkgs/development/libraries/lzlib/default.nix b/pkgs/by-name/lz/lzlib/package.nix similarity index 100% rename from pkgs/development/libraries/lzlib/default.nix rename to pkgs/by-name/lz/lzlib/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1d54c8c5ba5e..44830c8f880b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23765,8 +23765,6 @@ with pkgs; lyra = callPackage ../development/libraries/lyra { }; - lzlib = callPackage ../development/libraries/lzlib { }; - lzo = callPackage ../development/libraries/lzo { }; opencl-clang = callPackage ../development/libraries/opencl-clang { }; From 9ecc05d7bf38eb80cdde699e2dc4d10b30318846 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Wed, 24 Jan 2024 08:11:39 +0200 Subject: [PATCH 53/61] lzlib: 1.13 -> 1.14 --- pkgs/by-name/lz/lzlib/package.nix | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/lz/lzlib/package.nix b/pkgs/by-name/lz/lzlib/package.nix index b8c86221b489..db517669c5e8 100644 --- a/pkgs/by-name/lz/lzlib/package.nix +++ b/pkgs/by-name/lz/lzlib/package.nix @@ -1,15 +1,16 @@ { lib, stdenv, fetchurl, texinfo, lzip }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "lzlib"; - version = "1.13"; + version = "1.14"; outputs = [ "out" "info" ]; nativeBuildInputs = [ texinfo lzip ]; src = fetchurl { - url = "mirror://savannah/lzip/${pname}/${pname}-${version}.tar.lz"; - sha256 = "sha256-3ea9WzJTXxeyjJrCS2ZgfgJQUGrBQypBEso8c/XWYsM="; + url = "mirror://savannah/lzip/lzlib/lzlib-${finalAttrs.version}.tar.lz"; + sha256 = "e362ecccd82d4dd297df6a51b952c65d2172f9bf41a5c4590d3604d83aa519d3"; + # hash from release email }; postPatch = lib.optionalString stdenv.isDarwin '' @@ -21,12 +22,12 @@ stdenv.mkDerivation rec { configureFlags = [ "--enable-shared" ]; - meta = with lib; { - homepage = "https://www.nongnu.org/lzip/${pname}.html"; + meta = { + homepage = "https://www.nongnu.org/lzip/lzlib.html"; description = "Data compression library providing in-memory LZMA compression and decompression functions, including integrity checking of the decompressed data"; - license = licenses.bsd2; - platforms = platforms.all; - maintainers = with maintainers; [ ehmry ]; + license = lib.licenses.bsd2; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ ehmry ]; }; -} +}) \ No newline at end of file From c85d9eeda9d1c6fb5a9e173f2944c40ce4929720 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Wed, 24 Jan 2024 08:01:40 +0200 Subject: [PATCH 54/61] plzip: pkgs/tools/compression/plzip -> pkgs/by-name/pl/plzip --- .../plzip/default.nix => by-name/pl/plzip/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{tools/compression/plzip/default.nix => by-name/pl/plzip/package.nix} (100%) diff --git a/pkgs/tools/compression/plzip/default.nix b/pkgs/by-name/pl/plzip/package.nix similarity index 100% rename from pkgs/tools/compression/plzip/default.nix rename to pkgs/by-name/pl/plzip/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 44830c8f880b..18f033b29104 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10684,8 +10684,6 @@ with pkgs; lzip = callPackage ../tools/compression/lzip { }; - plzip = callPackage ../tools/compression/plzip { }; - lziprecover = callPackage ../tools/compression/lziprecover { }; xz = callPackage ../tools/compression/xz { }; From e94f7aef0907e0f6a3dd5b2cae1492e6db030287 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Wed, 24 Jan 2024 08:04:19 +0200 Subject: [PATCH 55/61] plzip: 1.10 -> 1.11 --- pkgs/by-name/pl/plzip/package.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/pl/plzip/package.nix b/pkgs/by-name/pl/plzip/package.nix index 310ae2074973..e9083581a86e 100644 --- a/pkgs/by-name/pl/plzip/package.nix +++ b/pkgs/by-name/pl/plzip/package.nix @@ -1,13 +1,14 @@ { lib, stdenv, fetchurl, lzip, lzlib, texinfo }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "plzip"; - version = "1.10"; + version = "1.11"; outputs = [ "out" "man" "info" ]; src = fetchurl { - url = "mirror://savannah/lzip/plzip/plzip-${version}.tar.lz"; - sha256 = "62f16a67be0dabf0da7fd1cb7889fe5bfae3140cea6cafa1c39e7e35a5b3c661"; + url = "mirror://savannah/lzip/plzip/plzip-${finalAttrs.version}.tar.lz"; + sha256 = "51f48d33df659bb3e1e7e418275e922ad752615a5bc984139da08f1e6d7d10fd"; + # hash from release email }; nativeBuildInputs = [ lzip texinfo ]; @@ -15,12 +16,14 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - meta = with lib; { + doCheck = true; + + meta = { homepage = "https://www.nongnu.org/lzip/plzip.html"; description = "A massively parallel lossless data compressor based on the lzlib compression library"; - license = licenses.gpl2Plus; - platforms = platforms.all; - maintainers = with maintainers; [ _360ied ]; + license = lib.licenses.gpl2Plus; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ _360ied ehmry ]; mainProgram = "plzip"; }; -} +}) From c20f87f00d445849b0149698884b893e4ac61cec Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 7 Feb 2024 22:49:03 +0000 Subject: [PATCH 56/61] dxx-rebirth: unstable-2023-03-23 -> unstable-2024-01-13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The main change is the build fix against `gcc-13` https://hydra.nixos.org/build/247695201: similar/main/digiobj.cpp: In function ‘void d1x::digi_sync_sounds()’: similar/main/digiobj.cpp:625:31: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 625 | const object &objp = [&vcobjptr, &s]{ | ^~~~ While at it added the trivial unstable updater. --- pkgs/games/dxx-rebirth/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/games/dxx-rebirth/default.nix b/pkgs/games/dxx-rebirth/default.nix index 95cf0918b52c..2664d3d4f306 100644 --- a/pkgs/games/dxx-rebirth/default.nix +++ b/pkgs/games/dxx-rebirth/default.nix @@ -11,6 +11,7 @@ , libGL , libpng , physfs +, unstableGitUpdater }: let @@ -22,13 +23,13 @@ let in stdenv.mkDerivation rec { pname = "dxx-rebirth"; - version = "unstable-2023-03-23"; + version = "unstable-2024-01-13"; src = fetchFromGitHub { owner = "dxx-rebirth"; repo = "dxx-rebirth"; - rev = "841ebcc11d249febe48911bc239606ade3bd78b3"; - hash = "sha256-cr5QdkKO/HNvtc2w4ynJixuLauhPCwtsSC3UEV7+C1A="; + rev = "5c710857a9312e1b2f3249c51c12b55f9390a2b1"; + hash = "sha256-nEPMJiTeePAmourAksUNqyy5whs+8+qy/qrycfNw2lo="; }; nativeBuildInputs = [ pkg-config scons ]; @@ -49,6 +50,8 @@ stdenv.mkDerivation rec { install -Dm644 -t $out/share/doc/dxx-rebirth *.txt ''; + passthru.updateScript = unstableGitUpdater {}; + meta = with lib; { description = "Source Port of the Descent 1 and 2 engines"; homepage = "https://www.dxx-rebirth.com/"; From bab00e00deeb9b802e7feabfc4c95b90b445cfa4 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 7 Feb 2024 23:25:43 +0000 Subject: [PATCH 57/61] Update pkgs/games/dxx-rebirth/default.nix Co-authored-by: Anderson Torres --- pkgs/games/dxx-rebirth/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/games/dxx-rebirth/default.nix b/pkgs/games/dxx-rebirth/default.nix index 2664d3d4f306..d69a4c6adc02 100644 --- a/pkgs/games/dxx-rebirth/default.nix +++ b/pkgs/games/dxx-rebirth/default.nix @@ -23,7 +23,7 @@ let in stdenv.mkDerivation rec { pname = "dxx-rebirth"; - version = "unstable-2024-01-13"; + version = "0-unstable-2024-01-13"; src = fetchFromGitHub { owner = "dxx-rebirth"; From 1a72ea772242923cc8d13b063ab1b224391dabf3 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Fri, 9 Feb 2024 11:39:43 +0000 Subject: [PATCH 58/61] ehmry: reduce maintainership --- pkgs/applications/audio/meters_lv2/default.nix | 1 - pkgs/applications/audio/picard/default.nix | 1 - pkgs/applications/networking/newsreaders/slrn/default.nix | 1 - pkgs/applications/networking/nym/default.nix | 1 - pkgs/applications/networking/soulseek/nicotine-plus/default.nix | 2 +- pkgs/by-name/li/libmpdclient/package.nix | 2 +- pkgs/development/libraries/chromaprint/default.nix | 1 - pkgs/development/libraries/kf5gpgmepp/default.nix | 1 - pkgs/development/python-modules/mplfinance/default.nix | 1 - pkgs/servers/mpd/default.nix | 2 +- pkgs/tools/archivers/unrar/default.nix | 2 +- pkgs/tools/misc/ipxe/default.nix | 1 - pkgs/tools/system/amtterm/default.nix | 1 - 13 files changed, 4 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/audio/meters_lv2/default.nix b/pkgs/applications/audio/meters_lv2/default.nix index 32802eebb88c..e79da2fd1ea9 100644 --- a/pkgs/applications/audio/meters_lv2/default.nix +++ b/pkgs/applications/audio/meters_lv2/default.nix @@ -50,7 +50,6 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Collection of audio level meters with GUI in LV2 plugin format"; homepage = "https://x42.github.io/meters.lv2/"; - maintainers = with maintainers; [ ehmry ]; license = licenses.gpl2; platforms = platforms.linux; }; diff --git a/pkgs/applications/audio/picard/default.nix b/pkgs/applications/audio/picard/default.nix index 46c7ba53ba05..6a269422664c 100644 --- a/pkgs/applications/audio/picard/default.nix +++ b/pkgs/applications/audio/picard/default.nix @@ -77,7 +77,6 @@ pythonPackages.buildPythonApplication rec { homepage = "https://picard.musicbrainz.org"; changelog = "https://picard.musicbrainz.org/changelog"; description = "The official MusicBrainz tagger"; - maintainers = with maintainers; [ ehmry ]; license = licenses.gpl2Plus; platforms = platforms.all; }; diff --git a/pkgs/applications/networking/newsreaders/slrn/default.nix b/pkgs/applications/networking/newsreaders/slrn/default.nix index b29d9f494b04..f105b5059b0b 100644 --- a/pkgs/applications/networking/newsreaders/slrn/default.nix +++ b/pkgs/applications/networking/newsreaders/slrn/default.nix @@ -28,7 +28,6 @@ stdenv.mkDerivation rec { meta = with lib; { description = "The slrn (S-Lang read news) newsreader"; homepage = "https://slrn.sourceforge.net/index.html"; - maintainers = with maintainers; [ ehmry ]; license = licenses.gpl2; platforms = with platforms; linux; }; diff --git a/pkgs/applications/networking/nym/default.nix b/pkgs/applications/networking/nym/default.nix index b5d0e15c3f02..fcd7893e7f27 100644 --- a/pkgs/applications/networking/nym/default.nix +++ b/pkgs/applications/networking/nym/default.nix @@ -79,7 +79,6 @@ rustPlatform.buildRustPackage { ''; homepage = "https://nymtech.net"; license = licenses.asl20; - maintainers = [ maintainers.ehmry ]; platforms = platforms.all; }; } diff --git a/pkgs/applications/networking/soulseek/nicotine-plus/default.nix b/pkgs/applications/networking/soulseek/nicotine-plus/default.nix index 6f49864f88db..dc9b49c1f891 100644 --- a/pkgs/applications/networking/soulseek/nicotine-plus/default.nix +++ b/pkgs/applications/networking/soulseek/nicotine-plus/default.nix @@ -51,6 +51,6 @@ python3Packages.buildPythonApplication rec { ''; homepage = "https://www.nicotine-plus.org"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ ehmry klntsky ]; + maintainers = with maintainers; [ klntsky ]; }; } diff --git a/pkgs/by-name/li/libmpdclient/package.nix b/pkgs/by-name/li/libmpdclient/package.nix index b20d0fb6d6db..691a1b76a2fb 100644 --- a/pkgs/by-name/li/libmpdclient/package.nix +++ b/pkgs/by-name/li/libmpdclient/package.nix @@ -29,7 +29,7 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://www.musicpd.org/libs/libmpdclient/"; changelog = "https://raw.githubusercontent.com/MusicPlayerDaemon/libmpdclient/${finalAttrs.src.rev}/NEWS"; license = with lib.licenses; [ bsd2 ]; - maintainers = with lib.maintainers; [ AndersonTorres ehmry ]; + maintainers = with lib.maintainers; [ AndersonTorres ]; platforms = lib.platforms.unix; }; }) diff --git a/pkgs/development/libraries/chromaprint/default.nix b/pkgs/development/libraries/chromaprint/default.nix index 413692439a54..3a169de590bb 100644 --- a/pkgs/development/libraries/chromaprint/default.nix +++ b/pkgs/development/libraries/chromaprint/default.nix @@ -19,7 +19,6 @@ stdenv.mkDerivation rec { meta = with lib; { homepage = "https://acoustid.org/chromaprint"; description = "AcoustID audio fingerprinting library"; - maintainers = with maintainers; [ ehmry ]; license = licenses.lgpl21Plus; platforms = platforms.unix; }; diff --git a/pkgs/development/libraries/kf5gpgmepp/default.nix b/pkgs/development/libraries/kf5gpgmepp/default.nix index 32aa17e687eb..5fa51987eaa7 100644 --- a/pkgs/development/libraries/kf5gpgmepp/default.nix +++ b/pkgs/development/libraries/kf5gpgmepp/default.nix @@ -17,7 +17,6 @@ mkDerivation { meta = with lib; { license = [ licenses.lgpl2 ]; - maintainers = [ maintainers.ehmry ]; platforms = platforms.linux; }; diff --git a/pkgs/development/python-modules/mplfinance/default.nix b/pkgs/development/python-modules/mplfinance/default.nix index 91d89c8b9a28..600c4ec0d05a 100644 --- a/pkgs/development/python-modules/mplfinance/default.nix +++ b/pkgs/development/python-modules/mplfinance/default.nix @@ -22,6 +22,5 @@ buildPythonPackage rec { description = "Matplotlib utilities for the visualization, and visual analysis, of financial data"; homepage = "https://github.com/matplotlib/mplfinance"; license = [ licenses.bsd3 ]; - maintainers = [ maintainers.ehmry ]; }; } diff --git a/pkgs/servers/mpd/default.nix b/pkgs/servers/mpd/default.nix index 285f2b83578c..ffebc9878e99 100644 --- a/pkgs/servers/mpd/default.nix +++ b/pkgs/servers/mpd/default.nix @@ -188,7 +188,7 @@ let description = "A flexible, powerful daemon for playing music"; homepage = "https://www.musicpd.org/"; license = licenses.gpl2Only; - maintainers = with maintainers; [ astsmtl ehmry tobim ]; + maintainers = with maintainers; [ astsmtl tobim ]; platforms = platforms.unix; mainProgram = "mpd"; diff --git a/pkgs/tools/archivers/unrar/default.nix b/pkgs/tools/archivers/unrar/default.nix index 9350a6fd1eed..8b4f46088b2d 100644 --- a/pkgs/tools/archivers/unrar/default.nix +++ b/pkgs/tools/archivers/unrar/default.nix @@ -55,7 +55,7 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://www.rarlab.com/"; license = licenses.unfreeRedistributable; mainProgram = "unrar"; - maintainers = with maintainers; [ ehmry wegank ]; + maintainers = with maintainers; [ wegank ]; platforms = platforms.all; }; }) diff --git a/pkgs/tools/misc/ipxe/default.nix b/pkgs/tools/misc/ipxe/default.nix index aa0c74b114b5..2c1b16d29925 100644 --- a/pkgs/tools/misc/ipxe/default.nix +++ b/pkgs/tools/misc/ipxe/default.nix @@ -107,7 +107,6 @@ stdenv.mkDerivation rec { { description = "Network boot firmware"; homepage = "https://ipxe.org/"; license = licenses.gpl2Only; - maintainers = with maintainers; [ ehmry ]; platforms = platforms.linux; }; } diff --git a/pkgs/tools/system/amtterm/default.nix b/pkgs/tools/system/amtterm/default.nix index eb6ec1765f68..6ec57c253e89 100644 --- a/pkgs/tools/system/amtterm/default.nix +++ b/pkgs/tools/system/amtterm/default.nix @@ -22,7 +22,6 @@ stdenv.mkDerivation (finalAttrs: { { description = "Intel AMT® SoL client + tools"; homepage = "https://www.kraxel.org/cgit/amtterm/"; license = licenses.gpl2; - maintainers = [ maintainers.ehmry ]; platforms = platforms.linux; }; }) From 5054d1282f96f108ccd8a75e653bb7a2dcec334e Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Wed, 7 Feb 2024 00:25:38 +0100 Subject: [PATCH 59/61] amphetype: add desktop item --- pkgs/by-name/am/amphetype/package.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/am/amphetype/package.nix b/pkgs/by-name/am/amphetype/package.nix index a59febee6692..0b47515c3dfe 100644 --- a/pkgs/by-name/am/amphetype/package.nix +++ b/pkgs/by-name/am/amphetype/package.nix @@ -1,8 +1,10 @@ -{ fetchFromGitLab, lib, python3Packages, qt5 }: +{ copyDesktopItems, fetchFromGitLab, lib, makeDesktopItem, python3Packages, qt5 +}: let pname = "amphetype"; version = "1.0.0"; + description = "An advanced typing practice program"; in python3Packages.buildPythonApplication { inherit pname version; @@ -21,10 +23,21 @@ in python3Packages.buildPythonApplication { doCheck = false; - nativeBuildInputs = [ qt5.wrapQtAppsHook ]; + nativeBuildInputs = [ copyDesktopItems qt5.wrapQtAppsHook ]; + + desktopItems = [ + (makeDesktopItem { + name = pname; + desktopName = "Amphetype"; + genericName = "Typing Practice"; + categories = [ "Education" "Qt" ]; + exec = pname; + comment = description; + }) + ]; meta = with lib; { - description = "An advanced typing practice program"; + inherit description; homepage = "https://gitlab.com/franksh/amphetype"; license = licenses.gpl3Only; maintainers = with maintainers; [ rycee ]; From 3f3a74782d6da0d0c29256dafbddcf1d0ceaa1dd Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 6 Feb 2024 14:26:53 -0600 Subject: [PATCH 60/61] maintainers: add daylinmorgan --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index d39369fab03d..e14b96b067d8 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4371,6 +4371,12 @@ githubId = 49904992; name = "Dawid Sowa"; }; + daylinmorgan = { + email = "daylinmorgan@gmail.com"; + github = "daylinmorgan"; + githubId = 47667941; + name = "Daylin Morgan"; + }; dbalan = { email = "nix@dbalan.in"; github = "dbalan"; From 8dc1729833bba4ccdc8a4d785bed891a6a92dd75 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 6 Feb 2024 12:08:44 -0600 Subject: [PATCH 61/61] nimlangserver: init at 1.2.0 --- pkgs/by-name/ni/nimlangserver/lock.json | 224 ++++++++++++++++++++++ pkgs/by-name/ni/nimlangserver/package.nix | 34 ++++ 2 files changed, 258 insertions(+) create mode 100644 pkgs/by-name/ni/nimlangserver/lock.json create mode 100644 pkgs/by-name/ni/nimlangserver/package.nix diff --git a/pkgs/by-name/ni/nimlangserver/lock.json b/pkgs/by-name/ni/nimlangserver/lock.json new file mode 100644 index 000000000000..1f0ac7507329 --- /dev/null +++ b/pkgs/by-name/ni/nimlangserver/lock.json @@ -0,0 +1,224 @@ +{ + "depends": [ + { + "method": "fetchzip", + "packages": [ + "asynctools" + ], + "path": "/nix/store/51nf7pb5cwg2n441ka6w6g6c4hdjsdj4-source", + "rev": "bb01d965a2ad0f08eaff6a53874f028ddbab4909", + "sha256": "0v4n7maskd07qsx8rsr9v0bs7nzbncmvxsn7j9jsk9azcy803v49", + "srcDir": "", + "url": "https://github.com/nickysn/asynctools/archive/bb01d965a2ad0f08eaff6a53874f028ddbab4909.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "asynctools" + ], + "path": "/nix/store/86w001hvppm2xfmqzb3733rnd5s1dmc2-source", + "rev": "non-blocking", + "sha256": "1iyr2k3vrbqfwm70w9bsyhis799lm9rin8j5pkjxgrpshm1znpbd", + "srcDir": "", + "url": "https://github.com/yyoncho/asynctools/archive/non-blocking.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "bearssl" + ], + "path": "/nix/store/drj65wylnxdbv4jqhymf7biiyjfb75v8-source", + "rev": "9372f27a25d0718d3527afad6cc936f6a853f86e", + "sha256": "152zbyqx12fmmjl4wn6kqqk1jzp1ywm4xvjd28ll9037f1pyd5ic", + "srcDir": "", + "url": "https://github.com/status-im/nim-bearssl/archive/9372f27a25d0718d3527afad6cc936f6a853f86e.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "chronicles" + ], + "path": "/nix/store/ffz78k6z9wf8vj2kv1jdj5dq2rxf61j7-source", + "rev": "2a2681b60289aaf7895b7056f22616081eb1a882", + "sha256": "0n8awgrmn9f6vd7ibv1jlyxk61lrs7hc51fghilrw6g6xq5w9rxq", + "srcDir": "", + "url": "https://github.com/status-im/nim-chronicles/archive/2a2681b60289aaf7895b7056f22616081eb1a882.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "chronos" + ], + "path": "/nix/store/l4zs1l1yw4yhf1f8q7r5x5z2szjygr6d-source", + "rev": "ba143e029f35fd9b4cd3d89d007cc834d0d5ba3c", + "sha256": "1lv3l9c4ifqzlfgpwpvpq2z3994zz1nirg8f59xrnfb7zgbv8l3i", + "srcDir": "", + "url": "https://github.com/status-im/nim-chronos/archive/ba143e029f35fd9b4cd3d89d007cc834d0d5ba3c.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "faststreams" + ], + "path": "/nix/store/4nj341ypj07hjvxv0462wpnywhkj02b5-source", + "rev": "422971502bd641703bf78a27cb20429e77fcfb8b", + "sha256": "0snzh904f8f3wn33liy6817q9ccx8mvsl88blhr49qh69mzbgnba", + "srcDir": "", + "url": "https://github.com/status-im/nim-faststreams/archive/422971502bd641703bf78a27cb20429e77fcfb8b.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "httputils" + ], + "path": "/nix/store/jmgpadmdabybhij1srd81xfr873zgfmm-source", + "rev": "5065d2cf18dcb9812e25cc0e2c50eb357bde04cf", + "sha256": "069fw3h9cjn0hab9vhfri8ibld7yihb8ggyg1nv5vxz6i3x026m5", + "srcDir": "", + "url": "https://github.com/status-im/nim-http-utils/archive/5065d2cf18dcb9812e25cc0e2c50eb357bde04cf.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "json_rpc" + ], + "path": "/nix/store/szg3jxcg0bf6zv224nyisqhnibkd2pxw-source", + "rev": "c8a5cbe26917e6716b1597dae2d08166f3ce789a", + "sha256": "1l1y4psbcd5w68j1zz172rlwsk7jxbwlr14r2kwnkj7xc7lfwlnx", + "srcDir": "", + "url": "https://github.com/yyoncho/nim-json-rpc/archive/c8a5cbe26917e6716b1597dae2d08166f3ce789a.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "json_serialization" + ], + "path": "/nix/store/h0xl7qnw7bh513rb24k1n805x3n1rimw-source", + "rev": "d9394dc7286064902d825bbc1203d03d7218633a", + "sha256": "102m7jaxjip24a6hrnk0nvfb0vmdx5zq4m9i4xyzq8m782xyqp94", + "srcDir": "", + "url": "https://github.com/status-im/nim-json-serialization/archive/d9394dc7286064902d825bbc1203d03d7218633a.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "news" + ], + "path": "/nix/store/siwfngb840kcdjdviy5rhlpvdpkw14sk-source", + "rev": "8bfd753649aa7e870ec45e93f1453d3bfcf66733", + "sha256": "0hvs4kfr4aais7ixvh9d7na2r2zjnvaw3m3rpklafn9qld2wpaav", + "srcDir": "src", + "url": "https://github.com/status-im/news/archive/8bfd753649aa7e870ec45e93f1453d3bfcf66733.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "news" + ], + "path": "/nix/store/siwfngb840kcdjdviy5rhlpvdpkw14sk-source", + "rev": "status", + "sha256": "0hvs4kfr4aais7ixvh9d7na2r2zjnvaw3m3rpklafn9qld2wpaav", + "srcDir": "src", + "url": "https://github.com/status-im/news/archive/status.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "nimcrypto" + ], + "path": "/nix/store/dnj20qh97ylf57nka9wbxs735wbw7yxv-source", + "rev": "4014ef939b51e02053c2e16dd3481d47bc9267dd", + "sha256": "1kgqr2lqaffglc1fgbanwcvhkqcbbd20d5b6w4lf0nksfl9c357a", + "srcDir": "", + "url": "https://github.com/cheatfate/nimcrypto/archive/4014ef939b51e02053c2e16dd3481d47bc9267dd.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "serialization" + ], + "path": "/nix/store/ss096qz8svm5my0mjhk3imyrc2nm2x0y-source", + "rev": "4d541ec43454809904fc4c3c0a7436410ad597d2", + "sha256": "1a5x0fsxxkqpambz9q637dz0jrzv9q1jb3cya12k6106vc65lyf8", + "srcDir": "", + "url": "https://github.com/status-im/nim-serialization/archive/4d541ec43454809904fc4c3c0a7436410ad597d2.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "stew" + ], + "path": "/nix/store/90rwcr71bq13cid74v4aazikv2s924r1-source", + "rev": "d9400ddea08341a65102cffdb693d3a7131efef4", + "sha256": "0gkmh63izhp0bxyfmwfvyp81bxnzwnc3r7nxr5a05xpl8crk85w2", + "srcDir": "", + "url": "https://github.com/status-im/nim-stew/archive/d9400ddea08341a65102cffdb693d3a7131efef4.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "stint" + ], + "path": "/nix/store/q42j4w2f70qfihcrpzgl3fspxihfsadb-source", + "rev": "c0ae9e10a9238883d18226fa28a5435c4d305e45", + "sha256": "0dxhjg5nf4sc4ga2zrxqcmr1v3ki9irkl603x0y3pz5sd8jdi731", + "srcDir": "", + "url": "https://github.com/status-im/nim-stint/archive/c0ae9e10a9238883d18226fa28a5435c4d305e45.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "testutils" + ], + "path": "/nix/store/hn5r1ywl4qzzjl9zj62w5m6f8bqkjn8q-source", + "rev": "dfc4c1b39f9ded9baf6365014de2b4bfb4dafc34", + "sha256": "0fi59m8yvayzlh1ajbl98ddy43i3ikjqh3s5px16y0s3cidg4fai", + "srcDir": "", + "url": "https://github.com/status-im/nim-testutils/archive/dfc4c1b39f9ded9baf6365014de2b4bfb4dafc34.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "unittest2" + ], + "path": "/nix/store/wdj38hf9hdyb1skgb6v0z00kxkdmnq04-source", + "rev": "b178f47527074964f76c395ad0dfc81cf118f379", + "sha256": "1ir20z9m4wmm0bs2dd2qiq75w0x3skv0yj7sqp6bqfh98ni44xdc", + "srcDir": "", + "url": "https://github.com/status-im/nim-unittest2/archive/b178f47527074964f76c395ad0dfc81cf118f379.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "websock" + ], + "path": "/nix/store/yad26q3iv3r2lw9xs655kyx3hvflxi1p-source", + "rev": "2c3ae3137f3c9cb48134285bd4a47186fa51f0e8", + "sha256": "09pkxzsnahljkqyp540v1wwiqcnbkz5ji5bz9q9cwn3axpmqc3v7", + "srcDir": "", + "url": "https://github.com/status-im/nim-websock/archive/2c3ae3137f3c9cb48134285bd4a47186fa51f0e8.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "with" + ], + "path": "/nix/store/qkwz2w5haw8px691c6gkklvxxp38j9d3-source", + "rev": "2f95909c767605e06670dc70f5cffd6b9284f192", + "sha256": "1qdq9wpm6xahqczmvdn3a7yvvrw5x42ylvzmbybdwjzd8vmgg0zv", + "srcDir": "", + "url": "https://github.com/zevv/with/archive/2f95909c767605e06670dc70f5cffd6b9284f192.tar.gz" + }, + { + "method": "fetchzip", + "packages": [ + "zlib" + ], + "path": "/nix/store/br78rad2jnl6zka2q89qi6pkfiyn10fv-source", + "rev": "f34ca261efd90f118dc1647beefd2f7a69b05d93", + "sha256": "1k8y7m1ry1z8jm8hj8pa3vlqprshaa59cdwq2a4acrfw9ks5w482", + "srcDir": "", + "url": "https://github.com/status-im/nim-zlib/archive/f34ca261efd90f118dc1647beefd2f7a69b05d93.tar.gz" + } + ] +} diff --git a/pkgs/by-name/ni/nimlangserver/package.nix b/pkgs/by-name/ni/nimlangserver/package.nix new file mode 100644 index 000000000000..78b8e655eb2e --- /dev/null +++ b/pkgs/by-name/ni/nimlangserver/package.nix @@ -0,0 +1,34 @@ +{ + lib, + buildNimPackage, + fetchFromGitHub, +}: +buildNimPackage (final: prev: { + pname = "nimlangserver"; + version = "1.2.0"; + + # lock.json was generated by converting + # nimble.lock into requires "#revSha" in a dummy.nimble + # for all packages and then running nim_lk on said dummy package + # default nim_lk output fails because it attempts + # to use branches that will not work instead of HEAD for packages + lockFile = ./lock.json; + + src = fetchFromGitHub { + owner = "nim-lang"; + repo = "langserver"; + rev = "71b59bfa77dabf6b8b381f6e18a1d963a1a658fc"; + hash = "sha256-dznegEhRHvztrNhBcUhW83RYgJpduwdGLWj/tJ//K8c="; + }; + + doCheck = false; + + meta = with lib; + final.src.meta + // { + description = "The Nim language server implementation (based on nimsuggest)"; + license = licenses.mit; + mainProgram = "nimlangserver"; + maintainers = with maintainers; [daylinmorgan]; + }; +})