From a343adb3ad251c6032df9c4828ef1ef8781c83f5 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sat, 11 Jan 2025 02:12:12 +0100 Subject: [PATCH 01/33] elkhound: add darwin support --- pkgs/by-name/el/elkhound/package.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/by-name/el/elkhound/package.nix b/pkgs/by-name/el/elkhound/package.nix index a5f4b3543fc4..3be9fcced3be 100644 --- a/pkgs/by-name/el/elkhound/package.nix +++ b/pkgs/by-name/el/elkhound/package.nix @@ -50,7 +50,6 @@ stdenv.mkDerivation rec { homepage = "https://scottmcpeak.com/elkhound/"; license = licenses.bsd3; maintainers = with maintainers; [ peterhoeg ]; - # possibly works on Darwin - platforms = platforms.linux; + platforms = platforms.unix; }; } From 38f32ee49ef9cf711bb97b110fca9379063b4b37 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sat, 11 Jan 2025 02:12:24 +0100 Subject: [PATCH 02/33] weidu: add darwin support --- pkgs/by-name/we/weidu/package.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/we/weidu/package.nix b/pkgs/by-name/we/weidu/package.nix index a8ca4c2422de..02b4b13371a5 100644 --- a/pkgs/by-name/we/weidu/package.nix +++ b/pkgs/by-name/we/weidu/package.nix @@ -6,7 +6,7 @@ ocaml-ng, perl, which, - gnumake42, + fetchpatch, }: let @@ -27,9 +27,17 @@ stdenv.mkDerivation rec { sha256 = "sha256-+vkKTzFZdAzY2dL+mZ4A0PDxhTKGgs9bfArz7S6b4m4="; }; + patches = [ + (fetchpatch { + url = "https://github.com/WeiDUorg/weidu/commit/bb90190d8bf7d102952c07d8288a7dc6c7a3322e.patch"; + hash = "sha256-Z4hHdMR1dYjJeERJSqlYynyPu2CvE6+XJuCr9ogDmvk="; + }) + ]; + postPatch = '' substitute sample.Configuration Configuration \ --replace /usr/bin ${lib.makeBinPath [ ocaml' ]} \ + --replace /usr/local/bin ${lib.makeBinPath [ ocaml' ]} \ --replace elkhound ${elkhound}/bin/elkhound mkdir -p obj/{.depend,x86_LINUX} @@ -43,7 +51,6 @@ stdenv.mkDerivation rec { ocaml' perl which - gnumake42 ]; buildFlags = [ @@ -69,7 +76,7 @@ stdenv.mkDerivation rec { homepage = "https://weidu.org"; license = licenses.gpl2Only; maintainers = with maintainers; [ peterhoeg ]; - # should work fine on both Darwin and Windows - platforms = platforms.linux; + # should work fine on Windows + platforms = platforms.unix; }; } From 6a3e390d2c735a4d1216d7b78e75ca358fb4d8b7 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Sun, 12 Jan 2025 12:57:25 +0100 Subject: [PATCH 03/33] duckstation: Fix build on aarch64-linux --- .../duckstation/003-fix-NEON-intrinsics.patch | 70 +++++++++++++++++++ pkgs/by-name/du/duckstation/package.nix | 2 + 2 files changed, 72 insertions(+) create mode 100644 pkgs/by-name/du/duckstation/003-fix-NEON-intrinsics.patch diff --git a/pkgs/by-name/du/duckstation/003-fix-NEON-intrinsics.patch b/pkgs/by-name/du/duckstation/003-fix-NEON-intrinsics.patch new file mode 100644 index 000000000000..571a15d4aad6 --- /dev/null +++ b/pkgs/by-name/du/duckstation/003-fix-NEON-intrinsics.patch @@ -0,0 +1,70 @@ +From 19e094e5c7aaaf375a13424044521701e85c8313 Mon Sep 17 00:00:00 2001 +From: OPNA2608 +Date: Thu, 9 Jan 2025 17:46:25 +0100 +Subject: [PATCH] Fix usage of NEON intrinsics + +--- + src/common/gsvector_neon.h | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/src/common/gsvector_neon.h b/src/common/gsvector_neon.h +index e4991af5e..61b8dc09b 100644 +--- a/src/common/gsvector_neon.h ++++ b/src/common/gsvector_neon.h +@@ -867,7 +867,7 @@ public: + + ALWAYS_INLINE int mask() const + { +- const uint32x2_t masks = vshr_n_u32(vreinterpret_u32_s32(v2s), 31); ++ const uint32x2_t masks = vshr_n_u32(vreinterpret_u32_f32(v2s), 31); + return (vget_lane_u32(masks, 0) | (vget_lane_u32(masks, 1) << 1)); + } + +@@ -2882,7 +2882,7 @@ public: + ALWAYS_INLINE GSVector4 gt64(const GSVector4& v) const + { + #ifdef CPU_ARCH_ARM64 +- return GSVector4(vreinterpretq_f32_f64(vcgtq_f64(vreinterpretq_f64_f32(v4s), vreinterpretq_f64_f32(v.v4s)))); ++ return GSVector4(vreinterpretq_f32_u64(vcgtq_f64(vreinterpretq_f64_f32(v4s), vreinterpretq_f64_f32(v.v4s)))); + #else + GSVector4 ret; + ret.U64[0] = (F64[0] > v.F64[0]) ? 0xFFFFFFFFFFFFFFFFULL : 0; +@@ -2894,7 +2894,7 @@ public: + ALWAYS_INLINE GSVector4 eq64(const GSVector4& v) const + { + #ifdef CPU_ARCH_ARM64 +- return GSVector4(vreinterpretq_f32_f64(vceqq_f64(vreinterpretq_f64_f32(v4s), vreinterpretq_f64_f32(v.v4s)))); ++ return GSVector4(vreinterpretq_f32_u64(vceqq_f64(vreinterpretq_f64_f32(v4s), vreinterpretq_f64_f32(v.v4s)))); + #else + GSVector4 ret; + ret.U64[0] = (F64[0] == v.F64[0]) ? 0xFFFFFFFFFFFFFFFFULL : 0; +@@ -2906,7 +2906,7 @@ public: + ALWAYS_INLINE GSVector4 lt64(const GSVector4& v) const + { + #ifdef CPU_ARCH_ARM64 +- return GSVector4(vreinterpretq_f32_f64(vcgtq_f64(vreinterpretq_f64_f32(v4s), vreinterpretq_f64_f32(v.v4s)))); ++ return GSVector4(vreinterpretq_f32_u64(vcgtq_f64(vreinterpretq_f64_f32(v4s), vreinterpretq_f64_f32(v.v4s)))); + #else + GSVector4 ret; + ret.U64[0] = (F64[0] < v.F64[0]) ? 0xFFFFFFFFFFFFFFFFULL : 0; +@@ -2918,7 +2918,7 @@ public: + ALWAYS_INLINE GSVector4 ge64(const GSVector4& v) const + { + #ifdef CPU_ARCH_ARM64 +- return GSVector4(vreinterpretq_f32_f64(vcgeq_f64(vreinterpretq_f64_f32(v4s), vreinterpretq_f64_f32(v.v4s)))); ++ return GSVector4(vreinterpretq_f32_u64(vcgeq_f64(vreinterpretq_f64_f32(v4s), vreinterpretq_f64_f32(v.v4s)))); + #else + GSVector4 ret; + ret.U64[0] = (F64[0] >= v.F64[0]) ? 0xFFFFFFFFFFFFFFFFULL : 0; +@@ -2930,7 +2930,7 @@ public: + ALWAYS_INLINE GSVector4 le64(const GSVector4& v) const + { + #ifdef CPU_ARCH_ARM64 +- return GSVector4(vreinterpretq_f32_f64(vcleq_f64(vreinterpretq_f64_f32(v4s), vreinterpretq_f64_f32(v.v4s)))); ++ return GSVector4(vreinterpretq_f32_u64(vcleq_f64(vreinterpretq_f64_f32(v4s), vreinterpretq_f64_f32(v.v4s)))); + #else + GSVector4 ret; + ret.U64[0] = (F64[0] <= v.F64[0]) ? 0xFFFFFFFFFFFFFFFFULL : 0; +-- +2.47.0 + diff --git a/pkgs/by-name/du/duckstation/package.nix b/pkgs/by-name/du/duckstation/package.nix index 65ddc92ea2de..c0838e8fe32f 100644 --- a/pkgs/by-name/du/duckstation/package.nix +++ b/pkgs/by-name/du/duckstation/package.nix @@ -40,6 +40,8 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: { ./001-fix-test-inclusion.diff # Patching yet another script that fills data based on git commands . . . ./002-hardcode-vars.diff + # Fix NEON intrinsics usage + ./003-fix-NEON-intrinsics.patch ]; nativeBuildInputs = [ From 0fe47395569c72f050f7cc4a59c78875eca3e58c Mon Sep 17 00:00:00 2001 From: cy Date: Sat, 11 Jan 2025 17:16:29 -0500 Subject: [PATCH 04/33] nixos/garage: add user-given path to ReadWritePaths If the user has specified a custom data_dir or meta_dir, this results in garage service failing with read-only filesystem error since the service runs with DynamicUser by default. --- nixos/modules/services/web-servers/garage.nix | 47 +++++++++++-------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/nixos/modules/services/web-servers/garage.nix b/nixos/modules/services/web-servers/garage.nix index bfc3fed4a2a5..764812831902 100644 --- a/nixos/modules/services/web-servers/garage.nix +++ b/nixos/modules/services/web-servers/garage.nix @@ -11,13 +11,6 @@ let cfg = config.services.garage; toml = pkgs.formats.toml { }; configFile = toml.generate "garage.toml" cfg.settings; - - anyHasPrefix = - prefix: strOrList: - if isString strOrList then - hasPrefix prefix strOrList - else - any ({ path, ... }: hasPrefix prefix path) strOrList; in { meta = { @@ -44,13 +37,13 @@ in }; logLevel = mkOption { - type = types.enum ([ + type = types.enum [ "error" "warn" "info" "debug" "trace" - ]); + ]; default = "info"; example = "debug"; description = "Garage log level, see for examples."; @@ -125,18 +118,32 @@ in restartTriggers = [ configFile ] ++ (lib.optional (cfg.environmentFile != null) cfg.environmentFile); - serviceConfig = { - ExecStart = "${cfg.package}/bin/garage server"; + serviceConfig = + let + paths = lib.flatten ( + with cfg.settings; + [ + metadata_dir + ] + # data_dir can either be a string or a list of attrs + # if data_dir is a list, the actual path will in in the `path` attribute of each item + # see https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#data_dir + ++ lib.optional (lib.isList data_dir) (map (item: item.path) data_dir) + ++ lib.optional (lib.isString data_dir) [ data_dir ] + ); + isDefault = lib.hasPrefix "/var/lib/garage"; + isDefaultStateDirectory = lib.any isDefault paths; + in + { + ExecStart = "${cfg.package}/bin/garage server"; - StateDirectory = mkIf ( - anyHasPrefix "/var/lib/garage" cfg.settings.data_dir - || hasPrefix "/var/lib/garage" cfg.settings.metadata_dir - ) "garage"; - DynamicUser = lib.mkDefault true; - ProtectHome = true; - NoNewPrivileges = true; - EnvironmentFile = lib.optional (cfg.environmentFile != null) cfg.environmentFile; - }; + StateDirectory = lib.mkIf isDefaultStateDirectory "garage"; + DynamicUser = lib.mkDefault true; + ProtectHome = true; + NoNewPrivileges = true; + EnvironmentFile = lib.optional (cfg.environmentFile != null) cfg.environmentFile; + ReadWritePaths = lib.filter (x: !(isDefault x)) (lib.flatten [ paths ]); + }; environment = { RUST_LOG = lib.mkDefault "garage=${cfg.logLevel}"; } // cfg.extraEnvironment; From 97f27249297bf5fbc563014ae9d4884dee27f1e0 Mon Sep 17 00:00:00 2001 From: cy Date: Wed, 15 Jan 2025 01:02:37 -0500 Subject: [PATCH 05/33] nixos/garage: add cything as maintainer --- nixos/modules/services/web-servers/garage.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-servers/garage.nix b/nixos/modules/services/web-servers/garage.nix index 764812831902..1783ca55184c 100644 --- a/nixos/modules/services/web-servers/garage.nix +++ b/nixos/modules/services/web-servers/garage.nix @@ -15,7 +15,10 @@ in { meta = { doc = ./garage.md; - maintainers = [ maintainers.mjm ]; + maintainers = with lib.maintainers; [ + mjm + cything + ]; }; options.services.garage = { From 76665e882758672c497f20c10e8130273a4423ce Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 18 Jan 2025 14:43:53 +0000 Subject: [PATCH 06/33] iosevka: 32.3.1 -> 32.4.0 --- pkgs/by-name/io/iosevka/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/io/iosevka/package.nix b/pkgs/by-name/io/iosevka/package.nix index 4b4ce4f1e47e..7d9cbd545089 100644 --- a/pkgs/by-name/io/iosevka/package.nix +++ b/pkgs/by-name/io/iosevka/package.nix @@ -56,16 +56,16 @@ assert (extraParameters != null) -> set != null; buildNpmPackage rec { pname = "Iosevka${toString set}"; - version = "32.3.1"; + version = "32.4.0"; src = fetchFromGitHub { owner = "be5invis"; repo = "iosevka"; rev = "v${version}"; - hash = "sha256-WoRBDLCqLglTXeXtC8ZVELgDOv18dsCDvToUq3iPoDU="; + hash = "sha256-kB4CsC/hHstajLcVYBxO7RD0lsZymrxlUha4cRtQ7Ak="; }; - npmDepsHash = "sha256-gmaFzcTbocx3RYW4G4Lw/08f3c71draxRwzV0BA2/KY="; + npmDepsHash = "sha256-Qr7fN49qyaqaSutrdT7HjWis7jjwYR/S2kxkHs7EhXY="; nativeBuildInputs = [ From 2ee9c181c53878896458b0a111945df6567565af Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 3 Nov 2024 16:01:28 +0200 Subject: [PATCH 07/33] fider: init at 0.24.0 Co-authored-by: Niklas Korz --- .../fi/fider/0001-disable-etc-copy.patch | 12 +++ pkgs/by-name/fi/fider/frontend.nix | 42 ++++++++ pkgs/by-name/fi/fider/package.nix | 101 ++++++++++++++++++ pkgs/by-name/fi/fider/server.nix | 30 ++++++ 4 files changed, 185 insertions(+) create mode 100644 pkgs/by-name/fi/fider/0001-disable-etc-copy.patch create mode 100644 pkgs/by-name/fi/fider/frontend.nix create mode 100644 pkgs/by-name/fi/fider/package.nix create mode 100644 pkgs/by-name/fi/fider/server.nix diff --git a/pkgs/by-name/fi/fider/0001-disable-etc-copy.patch b/pkgs/by-name/fi/fider/0001-disable-etc-copy.patch new file mode 100644 index 000000000000..f35c626621fc --- /dev/null +++ b/pkgs/by-name/fi/fider/0001-disable-etc-copy.patch @@ -0,0 +1,12 @@ +diff --git a/app/cmd/server.go b/app/cmd/server.go +index fcfbeec2..71f01c9d 100644 +--- a/app/cmd/server.go ++++ b/app/cmd/server.go +@@ -46,7 +46,6 @@ func RunServer() int { + }) + } + +- copyEtcFiles(ctx) + startJobs(ctx) + + e := routes(web.New()) diff --git a/pkgs/by-name/fi/fider/frontend.nix b/pkgs/by-name/fi/fider/frontend.nix new file mode 100644 index 000000000000..1361c3f5bee0 --- /dev/null +++ b/pkgs/by-name/fi/fider/frontend.nix @@ -0,0 +1,42 @@ +{ + lib, + esbuild, + buildNpmPackage, + + pname, + version, + src, + npmDepsHash, +}: + +buildNpmPackage { + inherit version src npmDepsHash; + pname = "${pname}-frontend"; + + nativeBuildInputs = [ esbuild ]; + + buildPhase = '' + runHook preBuild + + npx lingui extract public/ + npx lingui compile + NODE_ENV=production node esbuild.config.js + NODE_ENV=production npx webpack-cli + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + mkdir -p $out + cp -r dist ssr.js favicon.png robots.txt $out/ + + runHook postInstall + ''; + + env = { + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = 1; + ESBUILD_BINARY_PATH = lib.getExe esbuild; + }; +} diff --git a/pkgs/by-name/fi/fider/package.nix b/pkgs/by-name/fi/fider/package.nix new file mode 100644 index 000000000000..3fc6a3864efc --- /dev/null +++ b/pkgs/by-name/fi/fider/package.nix @@ -0,0 +1,101 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, + callPackage, + esbuild, + buildGoModule, +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "fider"; + version = "0.24.0"; + + src = fetchFromGitHub { + owner = "getfider"; + repo = "fider"; + tag = "v${finalAttrs.version}"; + hash = "sha256-nzOplwsE0ppmxbTrNAgePnIQIAD/5Uu4gXlebFKWGfc="; + }; + + dontConfigure = true; + dontBuild = true; + + # Allow easier version overrides, e.g.: + # pkgs.fider.overrideAttrs (prev: { + # version = "..."; + # src = prev.src.override { + # hash = "..."; + # }; + # vendorHash = "..."; + # npmDepsHash = "..."; + # }) + vendorHash = "sha256-CfopU72fpXiTaBtdf9A57Wb+flDu2XEtTISxImeJLL0="; + npmDepsHash = "sha256-gnboT5WQzftOCZ2Ouuza7bqpxJf+Zs7OWC8OHMZNHvw="; + + server = callPackage ./server.nix { + inherit (finalAttrs) + pname + version + src + vendorHash + ; + }; + frontend = callPackage ./frontend.nix { + inherit (finalAttrs) + pname + version + src + npmDepsHash + ; + # We specify the esbuild override here instead of in frontend.nix so end users can + # again easily override it if necessary, for example when changing to an unreleased + # version of fider requiring a newer esbuild than specified here: + # pkgs.fider.overrideAttrs (prev: { + # frontend = prev.frontend.override { + # esbuild = ...; + # }; + # }) + esbuild = esbuild.override { + buildGoModule = + args: + buildGoModule ( + args + // rec { + version = "0.14.38"; + src = fetchFromGitHub { + owner = "evanw"; + repo = "esbuild"; + tag = "v${version}"; + hash = "sha256-rvMi1oC7qGidvi4zrm9KCMMntu6LJGVOGN6VmU2ivQE="; + }; + vendorHash = "sha256-QPkBR+FscUc3jOvH7olcGUhM6OW4vxawmNJuRQxPuGs="; + } + ); + }; + }; + + installPhase = '' + runHook preInstall + + mkdir -p $out/etc + cp -r locale views migrations $out/ + cp -r etc/*.md $out/etc/ + ln -s ${finalAttrs.server}/* $out/ + ln -s ${finalAttrs.frontend}/* $out/ + + runHook postInstall + ''; + + meta = { + description = "Open platform to collect and prioritize feedback"; + homepage = "https://github.com/getfider/fider"; + changelog = "https://github.com/getfider/fider/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.agpl3Only; + mainProgram = "fider"; + maintainers = with lib.maintainers; [ + drupol + niklaskorz + ]; + }; +}) diff --git a/pkgs/by-name/fi/fider/server.nix b/pkgs/by-name/fi/fider/server.nix new file mode 100644 index 000000000000..1d2106949af8 --- /dev/null +++ b/pkgs/by-name/fi/fider/server.nix @@ -0,0 +1,30 @@ +{ + buildGoModule, + + pname, + version, + src, + vendorHash, +}: + +buildGoModule { + inherit version src vendorHash; + pname = "${pname}-server"; + + patches = [ + ./0001-disable-etc-copy.patch + ]; + + ldflags = [ + "-s" + "-w" + ]; + + doCheck = false; # requires a running PostgreSQL database + + # preCheck = '' + # set -o allexport + # source ./.test.env + # set +o allexport + # ''; +} From 54e48b64d144099a96e4a6a3c3a154c6cc111ffa Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 3 Nov 2024 15:54:52 +0100 Subject: [PATCH 08/33] nixos/fider: init Co-authored-by: Niklas Korz --- .../manual/release-notes/rl-2505.section.md | 2 + nixos/modules/module-list.nix | 1 + nixos/modules/services/web-apps/fider.nix | 124 ++++++++++++++++++ nixos/tests/all-tests.nix | 1 + nixos/tests/fider.nix | 33 +++++ pkgs/by-name/fi/fider/package.nix | 9 ++ 6 files changed, 170 insertions(+) create mode 100644 nixos/modules/services/web-apps/fider.nix create mode 100644 nixos/tests/fider.nix diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index 44af73915382..794ce781051f 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -99,6 +99,8 @@ - [Zipline](https://zipline.diced.sh/), a ShareX/file upload server that is easy to use, packed with features, and with an easy setup. Available as [services.zipline](#opt-services.zipline.enable). +- [Fider](https://fider.io/), an open platform to collect and prioritize feedback. Available as [services.fider](#opt-services.fider.enable). + - [mqtt-exporter](https://github.com/kpetremann/mqtt-exporter/), a Prometheus exporter for exposing messages from MQTT. Available as [services.prometheus.exporters.mqtt](#opt-services.prometheus.exporters.mqtt.enable). - [nvidia-gpu](https://github.com/utkuozdemir/nvidia_gpu_exporter), a Prometheus exporter that scrapes `nvidia-smi` for GPU metrics. Available as [services.prometheus.exporters.nvidia-gpu](#opt-services.prometheus.exporters.nvidia-gpu.enable). diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 7364d8c598db..6d91ad5d6b82 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -1474,6 +1474,7 @@ ./services/web-apps/eintopf.nix ./services/web-apps/engelsystem.nix ./services/web-apps/ethercalc.nix + ./services/web-apps/fider.nix ./services/web-apps/filesender.nix ./services/web-apps/firefly-iii.nix ./services/web-apps/firefly-iii-data-importer.nix diff --git a/nixos/modules/services/web-apps/fider.nix b/nixos/modules/services/web-apps/fider.nix new file mode 100644 index 000000000000..c716fb7bfd4e --- /dev/null +++ b/nixos/modules/services/web-apps/fider.nix @@ -0,0 +1,124 @@ +{ + config, + lib, + pkgs, + ... +}: +let + cfg = config.services.fider; + fiderCmd = lib.getExe cfg.package; +in +{ + options = { + + services.fider = { + enable = lib.mkEnableOption "the Fider server"; + package = lib.mkPackageOption pkgs "fider" { }; + + dataDir = lib.mkOption { + type = lib.types.str; + default = "/var/lib/fider"; + description = "Default data folder for Fider."; + example = "/mnt/fider"; + }; + + database = { + url = lib.mkOption { + type = lib.types.str; + default = "local"; + description = '' + URI to use for the main PostgreSQL database. If this needs to include + credentials that shouldn't be world-readable in the Nix store, set an + environment file on the systemd service and override the + `DATABASE_URL` entry. Pass the string + `local` to setup a database on the local server. + ''; + }; + }; + + environment = lib.mkOption { + type = lib.types.attrsOf lib.types.str; + default = { }; + example = { + PORT = "31213"; + BASE_URL = "https://fider.example.com"; + EMAIL = "smtp"; + EMAIL_NOREPLY = "fider@example.com"; + EMAIL_SMTP_USERNAME = "fider@example.com"; + EMAIL_SMTP_HOST = "mail.example.com"; + EMAIL_SMTP_PORT = "587"; + BLOB_STORAGE = "fs"; + }; + description = '' + Environment variables to set for the service. Secrets should be + specified using {option}`environmentFiles`. + Refer to + and + for available options. + ''; + }; + + environmentFiles = lib.mkOption { + type = lib.types.listOf lib.types.path; + default = [ ]; + example = "/run/secrets/fider.env"; + description = '' + Files to load environment variables from. Loaded variables override + values set in {option}`environment`. + ''; + }; + }; + }; + + config = lib.mkIf cfg.enable { + services.postgresql = lib.mkIf (cfg.database.url == "local") { + enable = true; + ensureUsers = [ + { + name = "fider"; + ensureDBOwnership = true; + } + ]; + ensureDatabases = [ "fider" ]; + }; + + systemd.services.fider = { + description = "Fider server"; + wantedBy = [ "multi-user.target" ]; + after = [ + "network.target" + ] ++ lib.optionals (cfg.database.url == "local") [ "postgresql.service" ]; + requires = lib.optionals (cfg.database.url == "local") [ "postgresql.service" ]; + environment = + let + localPostgresqlUrl = "postgres:///fider?host=/run/postgresql"; + in + { + DATABASE_URL = if (cfg.database.url == "local") then localPostgresqlUrl else cfg.database.url; + BLOB_STORAGE_FS_PATH = "${cfg.dataDir}"; + } + // cfg.environment; + serviceConfig = { + ExecStartPre = "${fiderCmd} migrate"; + ExecStart = fiderCmd; + StateDirectory = "fider"; + DynamicUser = true; + PrivateTmp = "yes"; + Restart = "on-failure"; + RuntimeDirectory = "fider"; + RuntimeDirectoryPreserve = true; + CacheDirectory = "fider"; + WorkingDirectory = "${cfg.package}"; + EnvironmentFile = cfg.environmentFiles; + }; + }; + }; + + meta = { + maintainers = with lib.maintainers; [ + drupol + niklaskorz + ]; + # doc = ./fider.md; + }; +} diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 622d43d4080b..10e591adcf71 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -336,6 +336,7 @@ in { fenics = handleTest ./fenics.nix {}; ferm = handleTest ./ferm.nix {}; ferretdb = handleTest ./ferretdb.nix {}; + fider = runTest ./fider.nix; filesender = handleTest ./filesender.nix {}; filesystems-overlayfs = runTest ./filesystems-overlayfs.nix; firefly-iii = handleTest ./firefly-iii.nix {}; diff --git a/nixos/tests/fider.nix b/nixos/tests/fider.nix new file mode 100644 index 000000000000..6db4777ce2bd --- /dev/null +++ b/nixos/tests/fider.nix @@ -0,0 +1,33 @@ +{ lib, ... }: + +{ + name = "fider-server"; + + nodes = { + machine = + { pkgs, ... }: + { + services.fider = { + enable = true; + environment = { + JWT_SECRET = "not_so_secret"; + BASE_URL = "/"; + EMAIL_NOREPLY = "noreply@fider.io"; + EMAIL_SMTP_HOST = "mailhog"; + EMAIL_SMTP_PORT = "1025"; + }; + }; + }; + }; + + testScript = '' + machine.start() + machine.wait_for_unit("fider.service") + machine.wait_for_open_port(3000) + ''; + + meta.maintainers = with lib.maintainers; [ + drupol + niklaskorz + ]; +} diff --git a/pkgs/by-name/fi/fider/package.nix b/pkgs/by-name/fi/fider/package.nix index 3fc6a3864efc..5efe096109fd 100644 --- a/pkgs/by-name/fi/fider/package.nix +++ b/pkgs/by-name/fi/fider/package.nix @@ -5,6 +5,8 @@ callPackage, esbuild, buildGoModule, + nixosTests, + nix-update-script, }: stdenvNoCC.mkDerivation (finalAttrs: { @@ -87,6 +89,13 @@ stdenvNoCC.mkDerivation (finalAttrs: { runHook postInstall ''; + passthru = { + tests = { + inherit (nixosTests) fider; + }; + updateScript = nix-update-script { }; + }; + meta = { description = "Open platform to collect and prioritize feedback"; homepage = "https://github.com/getfider/fider"; From 257be01ccfe1f9ab98e6e8ffb837c1bc7e4d045e Mon Sep 17 00:00:00 2001 From: Gliczy <129636582+Gliczy@users.noreply.github.com> Date: Sun, 19 Jan 2025 14:29:15 +0100 Subject: [PATCH 09/33] signal-desktop(darwin): fix hash --- pkgs/by-name/si/signal-desktop/signal-desktop-darwin.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/si/signal-desktop/signal-desktop-darwin.nix b/pkgs/by-name/si/signal-desktop/signal-desktop-darwin.nix index 0395fde4169c..8ce2479eafd9 100644 --- a/pkgs/by-name/si/signal-desktop/signal-desktop-darwin.nix +++ b/pkgs/by-name/si/signal-desktop/signal-desktop-darwin.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://updates.signal.org/desktop/signal-desktop-mac-universal-${finalAttrs.version}.dmg"; - hash = "sha256-C5wzKhJcH2FJQJk5u2FGBrGDbezHBIIIUMkkVV6T8S4="; + hash = "sha256-bSpiK8Q5A0q4fUuVmLBaEjlVB7fXOcSHo5epelgHPA0="; }; sourceRoot = "."; From b898dc0b852159117cd9d93f273b41359bcae8b7 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 19 Jan 2025 15:01:20 +0100 Subject: [PATCH 10/33] tailscale: build with tsidp --- pkgs/by-name/ta/tailscale/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/ta/tailscale/package.nix b/pkgs/by-name/ta/tailscale/package.nix index c9d688a99566..4b479bf170f3 100644 --- a/pkgs/by-name/ta/tailscale/package.nix +++ b/pkgs/by-name/ta/tailscale/package.nix @@ -55,6 +55,7 @@ buildGo123Module { "cmd/derper" "cmd/derpprobe" "cmd/tailscaled" + "cmd/tsidp" ]; ldflags = [ From 1b3284429f7c0c35f79619e7c21245546793c2fe Mon Sep 17 00:00:00 2001 From: Petr Zahradnik Date: Sun, 19 Jan 2025 15:10:21 +0100 Subject: [PATCH 11/33] k3d: 5.7.4 -> 5.8.1 --- pkgs/by-name/k3/k3d/package.nix | 41 +++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/k3/k3d/package.nix b/pkgs/by-name/k3/k3d/package.nix index e9034fb29268..144d50ae0466 100644 --- a/pkgs/by-name/k3/k3d/package.nix +++ b/pkgs/by-name/k3/k3d/package.nix @@ -1,8 +1,9 @@ -{ lib -, buildGoModule -, fetchFromGitHub -, installShellFiles -, k3sVersion ? null +{ + lib, + buildGoModule, + fetchFromGitHub, + installShellFiles, + k3sVersion ? null, }: let @@ -15,13 +16,13 @@ let in buildGoModule rec { pname = "k3d"; - version = "5.7.4"; + version = "5.8.1"; src = fetchFromGitHub { owner = "k3d-io"; repo = "k3d"; tag = "v${version}"; - hash = "sha256-z+7yeX0ea/6+4aWbA5NYW/HzvVcJiSkewOvo+oXp9bE="; + hash = "sha256-o56kBcuTOrDG8ZovGsIK+LIMi2Wps3kYJrqQuJHMd+A="; }; vendorHash = "sha256-lFmIRtkUiohva2Vtg4AqHaB5McVOWW5+SFShkNqYVZ8="; @@ -29,16 +30,26 @@ buildGoModule rec { nativeBuildInputs = [ installShellFiles ]; - excludedPackages = [ "tools" "docgen" ]; + excludedPackages = [ + "tools" + "docgen" + ]; ldflags = - let t = "github.com/k3d-io/k3d/v${lib.versions.major version}/version"; in - [ "-s" "-w" "-X ${t}.Version=v${version}" ] ++ lib.optionals k3sVersionSet [ "-X ${t}.K3sVersion=v${k3sVersion}" ]; + let + t = "github.com/k3d-io/k3d/v${lib.versions.major version}/version"; + in + [ + "-s" + "-w" + "-X ${t}.Version=v${version}" + ] + ++ lib.optionals k3sVersionSet [ "-X ${t}.K3sVersion=v${k3sVersion}" ]; preCheck = '' # skip test that uses networking substituteInPlace version/version_test.go \ - --replace "TestGetK3sVersion" "SkipGetK3sVersion" + --replace-fail "TestGetK3sVersion" "SkipGetK3sVersion" ''; postInstall = '' @@ -70,7 +81,13 @@ buildGoModule rec { multi-node k3s cluster on a single machine using docker. ''; license = licenses.mit; - maintainers = with maintainers; [ kuznero jlesquembre ngerstle jk ricochet ]; + maintainers = with maintainers; [ + kuznero + jlesquembre + ngerstle + jk + ricochet + ]; platforms = platforms.linux ++ platforms.darwin; }; } From 4e6dbf368da9a38f8ca33695caf2e179c8c72203 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sun, 19 Jan 2025 11:30:47 -0500 Subject: [PATCH 12/33] python312Packages.safety: 3.12.13 -> 3.2.14 Diff: https://github.com/pyupio/safety/compare/refs/tags/3.12.13...3.2.14 Changelog: https://github.com/pyupio/safety/blob/3.2.14/CHANGELOG.md --- pkgs/development/python-modules/safety/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/safety/default.nix b/pkgs/development/python-modules/safety/default.nix index 092c22518158..e437bd2d311e 100644 --- a/pkgs/development/python-modules/safety/default.nix +++ b/pkgs/development/python-modules/safety/default.nix @@ -26,9 +26,9 @@ buildPythonPackage rec { pname = "safety"; - version = "3.12.13"; + version = "3.2.14"; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; pyproject = true; @@ -36,7 +36,7 @@ buildPythonPackage rec { owner = "pyupio"; repo = "safety"; tag = version; - hash = "sha256-pE1J2hoV4glB1PisDrhCE/4m0J1gEHz/Tp/GJE83lBc="; + hash = "sha256-/RB+ota6dnlbJvtOOoIOHD+BjBzZIJRhEOAUQggUgB4="; }; postPatch = '' @@ -54,7 +54,7 @@ buildPythonPackage rec { build-system = [ setuptools ]; pythonRelaxDeps = [ - "filelock" + "pydantic" ]; dependencies = [ @@ -98,13 +98,13 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - meta = with lib; { + meta = { description = "Checks installed dependencies for known vulnerabilities"; mainProgram = "safety"; homepage = "https://github.com/pyupio/safety"; changelog = "https://github.com/pyupio/safety/blob/${version}/CHANGELOG.md"; - license = licenses.mit; - maintainers = with maintainers; [ + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ thomasdesr dotlambda ]; From 8c01b4fa296c0bbd12854d129fc05689a18a1e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 19 Jan 2025 18:06:34 +0100 Subject: [PATCH 13/33] youtube-music: 3.7.1 -> 3.7.2 Diff: https://github.com/th-ch/youtube-music/compare/v3.7.1...v3.7.2 Changelog: https://github.com/th-ch/youtube-music/blob/master/changelog.md#v372 --- pkgs/applications/audio/youtube-music/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/audio/youtube-music/default.nix b/pkgs/applications/audio/youtube-music/default.nix index c63a87b060c3..c989bdf5cf1f 100644 --- a/pkgs/applications/audio/youtube-music/default.nix +++ b/pkgs/applications/audio/youtube-music/default.nix @@ -13,18 +13,18 @@ stdenv.mkDerivation (finalAttrs: { pname = "youtube-music"; - version = "3.7.1"; + version = "3.7.2"; src = fetchFromGitHub { owner = "th-ch"; repo = "youtube-music"; rev = "v${finalAttrs.version}"; - hash = "sha256-IV8uTfogy4LchZYIMqDDT96N+5NYE/jwSFc18EhFCb0="; + hash = "sha256-gZ3EvIjPa/THRwMigglGp+Wtv+wEN7V11KOu1QsyJpE="; }; pnpmDeps = pnpm.fetchDeps { inherit (finalAttrs) pname version src; - hash = "sha256-ET4NDUtsTTY3t06VSJLa8Cjd6fP4zs71w83FlsJnq1U="; + hash = "sha256-4yeLfolBquKFjKB4iYj8rMPvclfpjwHhV6/Xb/YNQWo="; }; nativeBuildInputs = [ From de80709d152742aec5b724c4d9d45d069f69db54 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Sat, 18 Jan 2025 10:52:43 +0100 Subject: [PATCH 14/33] sway-easyfocus: 2023-11-05 -> 0.2.0 --- pkgs/by-name/sw/sway-easyfocus/package.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/sw/sway-easyfocus/package.nix b/pkgs/by-name/sw/sway-easyfocus/package.nix index dd4082764a29..65d7ed9018c2 100644 --- a/pkgs/by-name/sw/sway-easyfocus/package.nix +++ b/pkgs/by-name/sw/sway-easyfocus/package.nix @@ -15,16 +15,16 @@ rustPlatform.buildRustPackage rec { pname = "sway-easyfocus"; - version = "unstable-2023-11-05"; + version = "0.2.0"; src = fetchFromGitHub { owner = "edzdez"; repo = "sway-easyfocus"; - rev = "4c70f6728dbfc859e60505f0a7fd82f5a90ed42c"; - hash = "sha256-WvYXhf13ZCoa+JAF4bYgi5mI22i9pZLtbIhF1odqaTU="; + tag = version; + hash = "sha256-ogqstgJqUczn0LDwpOAppC1J/Cs0IEOAXjNAnbiKn6M="; }; - cargoHash = "sha256-9cN0ervcU8JojwG7J250fprbCD2rB9kh9TbRU+wCE/Y="; + cargoHash = "sha256-lAyKW6tjb4lVNA8xtvXLYYiLeKxSe/yfyY6h/f/WuP4="; nativeBuildInputs = [ pkg-config @@ -45,7 +45,7 @@ rustPlatform.buildRustPackage rec { description = "Tool to help efficiently focus windows in Sway, inspired by i3-easyfocus"; homepage = "https://github.com/edzdez/sway-easyfocus"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ ]; + maintainers = with lib.maintainers; [ pjones ]; mainProgram = "sway-easyfocus"; }; } From 4208161bb1f3e74d493b3d050ba00d9c9401d4d7 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sun, 19 Jan 2025 22:39:23 +0100 Subject: [PATCH 15/33] gimp: move to openexr_3 OpenEXR 2 is no maintained anymore. --- pkgs/applications/graphics/gimp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/graphics/gimp/default.nix b/pkgs/applications/graphics/gimp/default.nix index e5e552f299f9..d2b2644a1709 100644 --- a/pkgs/applications/graphics/gimp/default.nix +++ b/pkgs/applications/graphics/gimp/default.nix @@ -45,7 +45,7 @@ libheif, libxslt, libgudev, - openexr, + openexr_3, desktopToDarwinBundle, AppKit, Cocoa, @@ -126,7 +126,7 @@ stdenv.mkDerivation (finalAttrs: { poppler poppler_data libtiff - openexr + openexr_3 libmng librsvg libwmf From 359726d99ac7b9300a1df7b59ac15d7199d3d00e Mon Sep 17 00:00:00 2001 From: 7c6f434c <7c6f434c@mail.ru> Date: Mon, 20 Jan 2025 00:02:49 +0100 Subject: [PATCH 16/33] sbcl.pkgs.stumpwm: use overrideLispAttrs not overrideAttrs This allows further overrideLispAttrs use on the result --- pkgs/development/lisp-modules/packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/lisp-modules/packages.nix b/pkgs/development/lisp-modules/packages.nix index efb3e221fe05..04aa25f3ca07 100644 --- a/pkgs/development/lisp-modules/packages.nix +++ b/pkgs/development/lisp-modules/packages.nix @@ -190,7 +190,7 @@ let lispLibs = super.mathkit.lispLibs ++ [ super.sb-cga ]; }; - stumpwm = super.stumpwm.overrideAttrs { + stumpwm = super.stumpwm.overrideLispAttrs { inherit (pkgs.stumpwm) src version; meta = { inherit (pkgs.stumpwm.meta) description license homepage; From f34f442aa4257f8d1a86ff147ee2d15ecae82048 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Sun, 19 Jan 2025 19:24:24 -0500 Subject: [PATCH 17/33] maintainers: add ethancedwards8 matrix --- maintainers/maintainer-list.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 8b1cbbb11037..306fe1122c3a 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -7063,6 +7063,7 @@ }; ethancedwards8 = { email = "ethan@ethancedwards.com"; + matrix = "@ethancedwards8:matrix.org"; github = "ethancedwards8"; githubId = 60861925; name = "Ethan Carter Edwards"; From dba84b21bf8958a418af6a691eb9f9d36e196d84 Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Sun, 19 Jan 2025 20:21:11 -0500 Subject: [PATCH 18/33] maintainers: update getchoo --- maintainers/maintainer-list.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 8b1cbbb11037..164bd312448e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -8337,10 +8337,11 @@ name = "Tobias Happ"; }; getchoo = { + name = "Seth Flynn"; email = "getchoo@tuta.io"; + matrix = "@getchoo:matrix.org"; github = "getchoo"; githubId = 48872998; - name = "Seth"; }; getpsyched = { name = "Priyanshu Tripathi"; From 118ef08eb41716dc54874e4e5617042d5b845aa2 Mon Sep 17 00:00:00 2001 From: linsui <36977733+linsui@users.noreply.github.com> Date: Mon, 20 Jan 2025 23:58:29 +0800 Subject: [PATCH 19/33] yutto: 2.0.0-rc.6 -> 2.0.0-rc.7 --- pkgs/by-name/yu/yutto/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/yu/yutto/package.nix b/pkgs/by-name/yu/yutto/package.nix index b3d262c09ef1..c2e583dde832 100644 --- a/pkgs/by-name/yu/yutto/package.nix +++ b/pkgs/by-name/yu/yutto/package.nix @@ -8,7 +8,7 @@ python3Packages.buildPythonApplication rec { pname = "yutto"; - version = "2.0.0-rc.6"; + version = "2.0.0-rc.7"; pyproject = true; disabled = python3Packages.pythonOlder "3.9"; @@ -18,7 +18,7 @@ python3Packages.buildPythonApplication rec { owner = "yutto-dev"; repo = "yutto"; tag = "v${version}"; - hash = "sha256-h7ziP3+qHUFs16MuUaUPZ7qspIFCIzExDyUEo12DJIE="; + hash = "sha256-yNAQmpR65FSCbciSSdO2eHUJcE6Dl8J4dqq6GHt5NDQ="; }; build-system = with python3Packages; [ hatchling ]; From 06ee6116190af961b278f3830352ced4971e1a41 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Mon, 20 Jan 2025 19:45:28 +0100 Subject: [PATCH 20/33] ci/request-reviews: Don't fail when there's too many reviewers It's better than getting failed CI and emails: https://github.com/NixOS/nixpkgs/pull/371528#issuecomment-2573926369 And fix a shellcheck lint --- ci/request-reviews/request-reviewers.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/request-reviews/request-reviewers.sh b/ci/request-reviews/request-reviewers.sh index ee5664f04cbb..1c105e385d28 100755 --- a/ci/request-reviews/request-reviewers.sh +++ b/ci/request-reviews/request-reviewers.sh @@ -69,8 +69,8 @@ for user in "${!users[@]}"; do done if [[ "${#users[@]}" -gt 10 ]]; then - log "Too many reviewers (${!users[@]}), skipping review requests" - exit 1 + log "Too many reviewers (${!users[*]}), skipping review requests" + exit 0 fi for user in "${!users[@]}"; do From aad44b34121e383f728e33eaef74c2f2354aa6ca Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sat, 16 Nov 2024 17:31:59 -0600 Subject: [PATCH 21/33] luaPackages.tree-sitter-orgmode: init at 1.3.2-1 --- maintainers/scripts/luarocks-packages.csv | 1 + .../lua-modules/generated-packages.nix | 22 +++++++++++++++++ pkgs/development/lua-modules/overrides.nix | 24 ++++++++++++++++--- 3 files changed, 44 insertions(+), 3 deletions(-) diff --git a/maintainers/scripts/luarocks-packages.csv b/maintainers/scripts/luarocks-packages.csv index 8809e6b726ac..54396f8d67dc 100644 --- a/maintainers/scripts/luarocks-packages.csv +++ b/maintainers/scripts/luarocks-packages.csv @@ -148,6 +148,7 @@ tiktoken_core,,,,,,natsukium tl,,,,,,mephistophiles toml-edit,,,,,5.1,mrcjkb tree-sitter-norg,,,,,5.1,mrcjkb +tree-sitter-orgmode,,,,,, vstruct,,,,,, vusted,,,,,,figsoda xml2lua,,,,,,teto diff --git a/pkgs/development/lua-modules/generated-packages.nix b/pkgs/development/lua-modules/generated-packages.nix index d1cabd0eaa1f..30f11636611a 100644 --- a/pkgs/development/lua-modules/generated-packages.nix +++ b/pkgs/development/lua-modules/generated-packages.nix @@ -3523,6 +3523,28 @@ buildLuarocksPackage { }; }) {}; +tree-sitter-orgmode = callPackage({ buildLuarocksPackage, fetchurl, fetchzip, luarocks-build-treesitter-parser }: +buildLuarocksPackage { + pname = "tree-sitter-orgmode"; + version = "1.3.2-1"; + knownRockspec = (fetchurl { + url = "mirror://luarocks/tree-sitter-orgmode-1.3.2-1.rockspec"; + sha256 = "1md45ic96yf3agay30w9icr9c1v5fs0p6zs4dd5d0clrsc9029c4"; + }).outPath; + src = fetchzip { + url = "https://github.com/nvim-orgmode/tree-sitter-org/archive/v1.3.2.zip"; + sha256 = "1y1dyabvmm2q51nmi58lv0zf7sdz066i319s5j3ch6abcm1wv24i"; + }; + + nativeBuildInputs = [ luarocks-build-treesitter-parser ]; + + meta = { + homepage = "https://github.com/nvim-orgmode/tree-sitter-org"; + description = "A fork of tree-sitter-org, for use with the orgmode Neovim plugin"; + license.fullName = "MIT"; + }; +}) {}; + vstruct = callPackage({ buildLuarocksPackage, fetchFromGitHub, fetchurl, luaOlder }: buildLuarocksPackage { pname = "vstruct"; diff --git a/pkgs/development/lua-modules/overrides.nix b/pkgs/development/lua-modules/overrides.nix index 28bfbe42847d..56586eb0de90 100644 --- a/pkgs/development/lua-modules/overrides.nix +++ b/pkgs/development/lua-modules/overrides.nix @@ -838,6 +838,12 @@ in nativeBuildInputs = oa.nativeBuildInputs ++ [ cargo rustPlatform.cargoSetupHook ]; }); + tl = prev.tl.overrideAttrs ({ + preConfigure = '' + rm luarocks.lock + ''; + }); + toml-edit = prev.toml-edit.overrideAttrs (oa: { cargoDeps = rustPlatform.fetchCargoTarball { @@ -866,9 +872,21 @@ in ]; }); - tl = prev.tl.overrideAttrs ({ - preConfigure = '' - rm luarocks.lock + tree-sitter-orgmode = prev.tree-sitter-orgmode.overrideAttrs (oa: { + propagatedBuildInputs = + let + # HACK: luarocks-nix puts rockspec build dependencies in the nativeBuildInputs, + # but that doesn't seem to work + lua = lib.head oa.propagatedBuildInputs; + in + oa.propagatedBuildInputs + ++ [ + lua.pkgs.luarocks-build-treesitter-parser + tree-sitter + ]; + + preInstall = '' + export HOME="$TMPDIR"; ''; }); From ed4efc01cf4ea4fed8245a4821c18c706657c028 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sat, 16 Nov 2024 17:33:41 -0600 Subject: [PATCH 22/33] luaPackages.orgmode: init at 0.3.61-1 --- maintainers/scripts/luarocks-packages.csv | 1 + .../lua-modules/generated-packages.nix | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/maintainers/scripts/luarocks-packages.csv b/maintainers/scripts/luarocks-packages.csv index 54396f8d67dc..02e43b4fd83e 100644 --- a/maintainers/scripts/luarocks-packages.csv +++ b/maintainers/scripts/luarocks-packages.csv @@ -122,6 +122,7 @@ nlua,,,,,,teto nui.nvim,,,,,,mrcjkb nvim-cmp,https://raw.githubusercontent.com/hrsh7th/nvim-cmp/main/nvim-cmp-scm-1.rockspec,,,,, nvim-nio,,,,,,mrcjkb +orgmode,,,,,, pathlib.nvim,,,,,, papis-nvim,,,,,,GaetanLepage penlight,,,,,,alerque diff --git a/pkgs/development/lua-modules/generated-packages.nix b/pkgs/development/lua-modules/generated-packages.nix index 30f11636611a..6bfab21080c2 100644 --- a/pkgs/development/lua-modules/generated-packages.nix +++ b/pkgs/development/lua-modules/generated-packages.nix @@ -2907,6 +2907,29 @@ buildLuarocksPackage { }; }) {}; +orgmode = callPackage({ buildLuarocksPackage, fetchurl, fetchzip, luaOlder, tree-sitter-orgmode }: +buildLuarocksPackage { + pname = "orgmode"; + version = "0.3.61-1"; + knownRockspec = (fetchurl { + url = "mirror://luarocks/orgmode-0.3.61-1.rockspec"; + sha256 = "1sdmqaq3vzpb0c74n45piqrlcw3liiqlv282nrgr16jzsz1c870g"; + }).outPath; + src = fetchzip { + url = "https://github.com/nvim-orgmode/orgmode/archive/0.3.61.zip"; + sha256 = "1gkpwyfvw9z92277q6311r924rmb9zidgmlr4xxkmn2xrj5qwl7x"; + }; + + disabled = luaOlder "5.1"; + propagatedBuildInputs = [ tree-sitter-orgmode ]; + + meta = { + homepage = "https://nvim-orgmode.github.io/"; + description = "Orgmode clone written in Lua for Neovim 0.9+."; + license.fullName = "MIT"; + }; +}) {}; + pathlib-nvim = callPackage({ buildLuarocksPackage, fetchurl, fetchzip, luaOlder, nvim-nio }: buildLuarocksPackage { pname = "pathlib.nvim"; From 452d86c88eaf4737cf68d373cc35e0f7836c8556 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Thu, 2 Jan 2025 19:13:24 +0100 Subject: [PATCH 23/33] readeck: init at 0.17.1 --- pkgs/by-name/re/readeck/package.nix | 92 +++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 pkgs/by-name/re/readeck/package.nix diff --git a/pkgs/by-name/re/readeck/package.nix b/pkgs/by-name/re/readeck/package.nix new file mode 100644 index 000000000000..8c3e857450ff --- /dev/null +++ b/pkgs/by-name/re/readeck/package.nix @@ -0,0 +1,92 @@ +{ + fetchFromGitea, + fetchNpmDeps, + buildGoModule, + nodejs, + npmHooks, + lib, +}: + +let + + file-compose = buildGoModule { + pname = "file-compose"; + version = "unstable-2023-10-21"; + + src = fetchFromGitea { + domain = "codeberg.org"; + owner = "readeck"; + repo = "file-compose"; + rev = "afa938655d412556a0db74b202f9bcc1c40d8579"; + hash = "sha256-rMANRqUQRQ8ahlxuH1sWjlGpNvbReBOXIkmBim/wU2o="; + }; + + vendorHash = "sha256-Qwixx3Evbf+53OFeS3Zr7QCkRMfgqc9hUA4eqEBaY0c="; + }; +in + +buildGoModule rec { + pname = "readeck"; + version = "0.17.1"; + + src = fetchFromGitea { + domain = "codeberg.org"; + owner = "readeck"; + repo = "readeck"; + tag = version; + hash = "sha256-+GgjR1mxD93bFNaLeDuEefPlQEV9jNgFIo8jTAxphyo="; + }; + + nativeBuildInputs = [ + nodejs + npmHooks.npmConfigHook + ]; + + npmRoot = "web"; + + NODE_PATH = "$npmDeps"; + + preBuild = '' + make web-build + ${file-compose}/bin/file-compose -format json docs/api/api.yaml docs/assets/api.json + go run ./tools/docs docs/src docs/assets + ''; + + tags = [ + "netgo" + "osusergo" + "sqlite_omit_load_extension" + "sqlite_foreign_keys" + "sqlite_json1" + "sqlite_fts5" + "sqlite_secure_delete" + ]; + + ldflags = [ + "-X" + "codeberg.org/readeck/readeck/configs.version=${version}" + ]; + overrideModAttrs = oldAttrs: { + # Do not add `npmConfigHook` to `goModules` + nativeBuildInputs = lib.remove npmHooks.npmConfigHook oldAttrs.nativeBuildInputs; + # Do not run `preBuild` when building `goModules` + preBuild = null; + }; + + npmDeps = fetchNpmDeps { + src = "${src}/web"; + hash = "sha256-7fRSkXKAMEC7rFmSF50DM66SVhV68g93PMBjrtkd9/E="; + }; + + vendorHash = "sha256-O/ZrpT6wTtPwBDUCAmR0XHRgQmd46/MPvWNE0EvD3bg="; + + meta = { + description = "Web application that lets you save the readable content of web pages you want to keep forever."; + mainProgram = "readeck"; + homepage = "https://readeck.org/"; + changelog = "https://github.com/readeck/readeck/releases/tag/${version}"; + license = lib.licenses.agpl3Only; + maintainers = with lib.maintainers; [ julienmalka ]; + }; + +} From 0be7395f95ef9aa967dd41ca17ea5ae0855bd3c6 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Thu, 2 Jan 2025 21:09:06 +0100 Subject: [PATCH 24/33] nixos/readeck: init --- .../manual/release-notes/rl-2505.section.md | 2 + nixos/modules/module-list.nix | 1 + nixos/modules/services/web-apps/readeck.nix | 96 +++++++++++++++++++ nixos/tests/all-tests.nix | 1 + nixos/tests/readeck.nix | 24 +++++ pkgs/by-name/re/readeck/package.nix | 2 +- 6 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 nixos/modules/services/web-apps/readeck.nix create mode 100644 nixos/tests/readeck.nix diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index 2d108ac7ce00..3d96fce4b579 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -53,6 +53,8 @@ - [Conduwuit](https://conduwuit.puppyirl.gay/), a federated chat server implementing the Matrix protocol, forked from Conduit. Available as [services.conduwuit](#opt-services.conduwuit.enable). +- [Readeck](https://readeck.org/), a read-it later web-application. Available as [services.readeck](#opt-services.readeck.enable). + - [Traccar](https://www.traccar.org/), a modern GPS Tracking Platform. Available as [services.traccar](#opt-services.traccar.enable). - [Schroot](https://codeberg.org/shelter/reschroot), a lightweight virtualisation tool. Securely enter a chroot and run a command or login shell. Available as [programs.schroot](#opt-programs.schroot.enable). diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 06979a4df508..cca17f86e2bc 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -1549,6 +1549,7 @@ ./services/web-apps/screego.nix ./services/web-apps/sftpgo.nix ./services/web-apps/suwayomi-server.nix + ./services/web-apps/readeck.nix ./services/web-apps/rss-bridge.nix ./services/web-apps/selfoss.nix ./services/web-apps/shiori.nix diff --git a/nixos/modules/services/web-apps/readeck.nix b/nixos/modules/services/web-apps/readeck.nix new file mode 100644 index 000000000000..bd529fa488ef --- /dev/null +++ b/nixos/modules/services/web-apps/readeck.nix @@ -0,0 +1,96 @@ +{ + config, + pkgs, + lib, + ... +}: + +let + inherit (lib) + mkEnableOption + mkPackageOption + mkOption + mkIf + types + ; + cfg = config.services.readeck; + settingsFormat = pkgs.formats.toml { }; + configFile = settingsFormat.generate "readeck.toml" cfg.settings; + +in +{ + + meta.maintainers = [ lib.maintainers.julienmalka ]; + + options = { + services.readeck = { + enable = mkEnableOption "Readeck"; + + package = mkPackageOption pkgs "readeck" { }; + + environmentFile = mkOption { + type = types.nullOr types.path; + description = '' + File containing environment variables to be passed to Readeck. + May be used to provide the Readeck secret key by setting the READECK_SECRET_KEY variable. + ''; + default = null; + }; + + settings = mkOption { + type = settingsFormat.type; + default = { }; + example = { + main.log_level = "debug"; + server.port = 9000; + }; + description = '' + Additional configuration for Readeck, see + + for supported values. + ''; + }; + + }; + }; + + config = mkIf cfg.enable { + systemd.services.readeck = { + description = "Readeck"; + after = [ "network.target" ]; + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + Type = "simple"; + StateDirectory = "readeck"; + WorkingDirectory = "/var/lib/readeck"; + EnvironmentFile = lib.optional (cfg.environmentFile != null) cfg.environmentFile; + DynamicUser = true; + ExecStart = "${lib.getExe cfg.package} serve -config ${configFile}"; + ProtectSystem = "full"; + SystemCallArchitectures = "native"; + MemoryDenyWriteExecute = true; + NoNewPrivileges = true; + PrivateTmp = true; + PrivateDevices = true; + RestrictAddressFamilies = [ + "AF_INET" + "AF_INET6" + "AF_UNIX" + "AF_NETLINK" + ]; + RestrictNamespaces = true; + RestrictRealtime = true; + DevicePolicy = "closed"; + ProtectClock = true; + ProtectHostname = true; + ProtectProc = "invisible"; + ProtectControlGroups = true; + ProtectKernelModules = true; + ProtectKernelTunables = true; + LockPersonality = true; + Restart = "on-failure"; + + }; + }; + }; +} diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index cf0616886301..1b580458521b 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -889,6 +889,7 @@ in { rathole = handleTest ./rathole.nix {}; readarr = handleTest ./readarr.nix {}; realm = handleTest ./realm.nix {}; + readeck = runTest ./readeck.nix; redis = handleTest ./redis.nix {}; redlib = handleTest ./redlib.nix {}; redmine = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./redmine.nix {}; diff --git a/nixos/tests/readeck.nix b/nixos/tests/readeck.nix new file mode 100644 index 000000000000..bcac4b152b12 --- /dev/null +++ b/nixos/tests/readeck.nix @@ -0,0 +1,24 @@ +{ lib, ... }: + +{ + name = "readeck"; + meta.maintainers = with lib.maintainers; [ julienmalka ]; + + nodes.machine = + { pkgs, ... }: + { + services.readeck = { + enable = true; + environmentFile = pkgs.writeText "env-file" '' + READECK_SECRET_KEY="verysecretkey" + ''; + }; + }; + + testScript = '' + machine.start() + machine.wait_for_unit("readeck.service") + machine.wait_for_open_port(8000) + machine.succeed("curl --fail http://localhost:8000/login?r=%2F") + ''; +} diff --git a/pkgs/by-name/re/readeck/package.nix b/pkgs/by-name/re/readeck/package.nix index 8c3e857450ff..cf8f768e733d 100644 --- a/pkgs/by-name/re/readeck/package.nix +++ b/pkgs/by-name/re/readeck/package.nix @@ -8,7 +8,7 @@ }: let - + file-compose = buildGoModule { pname = "file-compose"; version = "unstable-2023-10-21"; From 151b7f7babefc1505f14ff2ff2da4baf028a3254 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 17 Jan 2025 01:08:25 +0000 Subject: [PATCH 25/33] haruna: 1.2.1 -> 1.3.0 --- pkgs/applications/video/haruna/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/haruna/default.nix b/pkgs/applications/video/haruna/default.nix index 1c0e4e9782b9..faaf6431f273 100644 --- a/pkgs/applications/video/haruna/default.nix +++ b/pkgs/applications/video/haruna/default.nix @@ -26,13 +26,13 @@ stdenv.mkDerivation rec { pname = "haruna"; - version = "1.2.1"; + version = "1.3.0"; src = fetchFromGitLab { owner = "multimedia"; repo = "haruna"; rev = "v${version}"; - hash = "sha256-RxHCs5NiKORikbTyNwRD27aQfX5id4K/Lp1bQ8cAwVo="; + hash = "sha256-9KvqZzB9n4x11xhdEkdn0lxv92dbcWWbyL7GjqvfJhA="; domain = "invent.kde.org"; }; From 2b04ddeceae69f0276ed262500346846839ec948 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 20 Jan 2025 23:51:11 +0100 Subject: [PATCH 26/33] python313Packages.mitogen: 0.3.20 -> 0.3.21 Diff: https://github.com/mitogen-hq/mitogen/compare/refs/tags/v0.3.20...v0.3.21 Changelog: https://github.com/mitogen-hq/mitogen/blob/v0.3.21/docs/changelog.rst --- pkgs/development/python-modules/mitogen/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/mitogen/default.nix b/pkgs/development/python-modules/mitogen/default.nix index c9b05240e8ce..c4f8697959d7 100644 --- a/pkgs/development/python-modules/mitogen/default.nix +++ b/pkgs/development/python-modules/mitogen/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "mitogen"; - version = "0.3.20"; + version = "0.3.21"; pyproject = true; disabled = pythonOlder "3.7"; @@ -17,7 +17,7 @@ buildPythonPackage rec { owner = "mitogen-hq"; repo = "mitogen"; tag = "v${version}"; - hash = "sha256-XA4ra06OHUV67HF093Mfi0M+Dd6K3gMnOYeOB663DhA="; + hash = "sha256-F8W15JHOuQ+MhQtQZz+zssgeZqFC+agqINnFaKP0lto="; }; build-system = [ setuptools ]; From 2c5a39abee5759d0c787ebe2f7d6ec0a14bf00db Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 20 Jan 2025 23:54:13 +0100 Subject: [PATCH 27/33] python313Packages.asteval: 1.0.5 -> 1.0.6 Diff: https://github.com/lmfit/asteval/compare/refs/tags/1.0.5...1.0.6 Changelog: https://github.com/lmfit/asteval/releases/tag/1.0.6 --- pkgs/development/python-modules/asteval/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/asteval/default.nix b/pkgs/development/python-modules/asteval/default.nix index dadca55023d5..be1ae7a2bdba 100644 --- a/pkgs/development/python-modules/asteval/default.nix +++ b/pkgs/development/python-modules/asteval/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "asteval"; - version = "1.0.5"; + version = "1.0.6"; pyproject = true; disabled = pythonOlder "3.8"; @@ -18,7 +18,7 @@ buildPythonPackage rec { owner = "lmfit"; repo = "asteval"; tag = version; - hash = "sha256-PRmTbP3zRnkCxdeb45LBz5m/Ymoi4lq2poKuG9Esg9g="; + hash = "sha256-DzLVe8TlWAPQXzai9CJlDAow6UTSmkA/DW3fT30YfZY="; }; postPatch = '' From 7f98d52d5fffa2e621082460d3626058c0dd9006 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 20 Jan 2025 23:55:12 +0100 Subject: [PATCH 28/33] python313Packages.cyclopts: 3.2.1 -> 3.3.0 Diff: https://github.com/BrianPugh/cyclopts/compare/refs/tags/v3.2.1...v3.3.0 Changelog: https://github.com/BrianPugh/cyclopts/releases/tag/v3.3.0 --- pkgs/development/python-modules/cyclopts/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/cyclopts/default.nix b/pkgs/development/python-modules/cyclopts/default.nix index cbc291516d53..7a859d9bab5a 100644 --- a/pkgs/development/python-modules/cyclopts/default.nix +++ b/pkgs/development/python-modules/cyclopts/default.nix @@ -19,7 +19,7 @@ buildPythonPackage rec { pname = "cyclopts"; - version = "3.2.1"; + version = "3.3.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -28,7 +28,7 @@ buildPythonPackage rec { owner = "BrianPugh"; repo = "cyclopts"; tag = "v${version}"; - hash = "sha256-dHmoO9agZBhDviowtvuAox8hJsHcxgQTRxpaYmy50Dk="; + hash = "sha256-sXTKBDfQSqMWBX+wrhP6fCugGSuXM8mOkEroFWPalVs="; }; build-system = [ From e912cd9426a98f8b5bff0c13276a163a06f67288 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 20 Jan 2025 23:56:32 +0100 Subject: [PATCH 29/33] python313Packages.kasa-crypt: 0.4.4 -> 0.5.0 Diff: https://github.com/bdraco/kasa-crypt/compare/refs/tags/v0.4.4...v0.5.0 Changelog: https://github.com/bdraco/kasa-crypt/blob/v0.5.0/CHANGELOG.md --- pkgs/development/python-modules/kasa-crypt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/kasa-crypt/default.nix b/pkgs/development/python-modules/kasa-crypt/default.nix index fec36603df72..595a8a6e6eb9 100644 --- a/pkgs/development/python-modules/kasa-crypt/default.nix +++ b/pkgs/development/python-modules/kasa-crypt/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "kasa-crypt"; - version = "0.4.4"; + version = "0.5.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "bdraco"; repo = "kasa-crypt"; tag = "v${version}"; - hash = "sha256-9uDloaf9w75O+7r27PK/xOf0TrK43ndxnTUcm4CmOXo="; + hash = "sha256-pkUB2RTCTZW9NhZlxBA9YC+8yWx+6yrNXk8OGAfGto4="; }; postPatch = '' From 0ba4aab8de39b08f324a54b645a94e1d97813f97 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 20 Jan 2025 23:59:32 +0100 Subject: [PATCH 30/33] python313Packages.thermopro-ble: 0.10.0 -> 0.10.1 Diff: https://github.com/bluetooth-devices/thermopro-ble/compare/refs/tags/v0.10.0...v0.10.1 Changelog: https://github.com/Bluetooth-Devices/thermopro-ble/blob/v0.10.1/CHANGELOG.md --- pkgs/development/python-modules/thermopro-ble/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/thermopro-ble/default.nix b/pkgs/development/python-modules/thermopro-ble/default.nix index 54abab3cd808..e7649a04822c 100644 --- a/pkgs/development/python-modules/thermopro-ble/default.nix +++ b/pkgs/development/python-modules/thermopro-ble/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "thermopro-ble"; - version = "0.10.0"; + version = "0.10.1"; pyproject = true; disabled = pythonOlder "3.9"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "bluetooth-devices"; repo = "thermopro-ble"; tag = "v${version}"; - hash = "sha256-xaRbp9XLCDGJ0NE0TzJygn2OzqvSFszs97vGHawCkzU="; + hash = "sha256-OGUgWiD/4a2A40wut70YAvwBREpB9xjN0YcFpu411z4="; }; build-system = [ poetry-core ]; From a2ebcb81a95d49189a53d020cb8ed251a9c98838 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 Jan 2025 00:01:09 +0100 Subject: [PATCH 31/33] python313Packages.python-overseerr: 0.5.0 -> 0.6.0 Diff: https://github.com/joostlek/python-overseerr/compare/refs/tags/v0.5.0...v0.6.0 Changelog: https://github.com/joostlek/python-overseerr/releases/tag/v0.6.0 --- pkgs/development/python-modules/python-overseerr/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/python-overseerr/default.nix b/pkgs/development/python-modules/python-overseerr/default.nix index 536657e8cbcf..c9e9a109a977 100644 --- a/pkgs/development/python-modules/python-overseerr/default.nix +++ b/pkgs/development/python-modules/python-overseerr/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "python-overseerr"; - version = "0.5.0"; + version = "0.6.0"; pyproject = true; disabled = pythonOlder "3.11"; @@ -26,7 +26,7 @@ buildPythonPackage rec { owner = "joostlek"; repo = "python-overseerr"; tag = "v${version}"; - hash = "sha256-MdJISHU/YbmQReT/Sf29jERUkuFASNCq4NQnk/BKK70="; + hash = "sha256-XkuHy8gF8z5t1AcdVdBYWHBgOpAM9jpO41IM7DB3Wt0="; }; build-system = [ poetry-core ]; From 7557759c53e9b823bc106ad1766bfd1f1566a0d2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 Jan 2025 00:08:53 +0100 Subject: [PATCH 32/33] python313Packages.aioraven: 0.7.0 -> 0.7.1 Diff: https://github.com/cottsay/aioraven/compare/refs/tags/0.7.0...0.7.1 Changelog: https://github.com/cottsay/aioraven/blob/0.7.1/CHANGELOG.md --- pkgs/development/python-modules/aioraven/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aioraven/default.nix b/pkgs/development/python-modules/aioraven/default.nix index ce0a052bd47c..c6776a07f5b6 100644 --- a/pkgs/development/python-modules/aioraven/default.nix +++ b/pkgs/development/python-modules/aioraven/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "aioraven"; - version = "0.7.0"; + version = "0.7.1"; pyproject = true; disabled = pythonOlder "3.9"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "cottsay"; repo = "aioraven"; tag = version; - hash = "sha256-ux2jeXkh8YsJ6mItXOx40pp0Tc+aJXMV7ZqyZg+iy2c="; + hash = "sha256-rGqaDJtpdDWd8fxdfwU+rmgwEzZyYHfbiZxUlWoH2ks="; }; build-system = [ setuptools ]; From e146859479da60d93d7de66af1c54b2a9499f8a0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 Jan 2025 00:11:03 +0100 Subject: [PATCH 33/33] python313Packages.ayla-iot-unofficial: 1.4.4 -> 1.4.5 Diff: https://github.com/rewardone/ayla-iot-unofficial/compare/refs/tags/v1.4.4...v1.4.5 Changelog: https://github.com/rewardone/ayla-iot-unofficial/releases/tag/v1.4.5 --- .../python-modules/ayla-iot-unofficial/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ayla-iot-unofficial/default.nix b/pkgs/development/python-modules/ayla-iot-unofficial/default.nix index 4836faca61ea..56bc5121672d 100644 --- a/pkgs/development/python-modules/ayla-iot-unofficial/default.nix +++ b/pkgs/development/python-modules/ayla-iot-unofficial/default.nix @@ -12,14 +12,14 @@ buildPythonPackage rec { pname = "ayla-iot-unofficial"; - version = "1.4.4"; + version = "1.4.5"; pyproject = true; src = fetchFromGitHub { owner = "rewardone"; repo = "ayla-iot-unofficial"; tag = "v${version}"; - hash = "sha256-LYHfu02FYoL2D9dEL3CM3llRXMa2M3EMU9CAsl1Cgoo="; + hash = "sha256-FV3jes1cpvYbpCmJ+gdzBdsii1kyYe46R1NIpxiELBY="; }; build-system = [ setuptools ];