From 3c05138a5c1d82cd77c6c8bf8826156ca6940bea Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Sun, 31 Dec 2023 01:52:01 +0100 Subject: [PATCH] portunus: 2.0.0 -> 2.1.1 Changelog: v2.1.1 only fixes a regression that v2.1.0 introduced. --- nixos/doc/manual/release-notes/rl-2405.section.md | 2 +- pkgs/servers/portunus/default.nix | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2405.section.md b/nixos/doc/manual/release-notes/rl-2405.section.md index a1d26f6a12f7..51e1d4369509 100644 --- a/nixos/doc/manual/release-notes/rl-2405.section.md +++ b/nixos/doc/manual/release-notes/rl-2405.section.md @@ -102,7 +102,7 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m The `nimPackages` and `nim2Packages` sets have been removed. See https://nixos.org/manual/nixpkgs/unstable#nim for more information. -- [Portunus](https://github.com/majewsky/portunus) has been updated to 2.0. +- [Portunus](https://github.com/majewsky/portunus) has been updated to major version 2. This version of Portunus supports strong password hashes, but the legacy hash SHA-256 is also still supported to ensure a smooth migration of existing user accounts. After upgrading, follow the instructions on the [upstream release notes](https://github.com/majewsky/portunus/releases/tag/v2.0.0) to upgrade all user accounts to strong password hashes. Support for weak password hashes will be removed in NixOS 24.11. diff --git a/pkgs/servers/portunus/default.nix b/pkgs/servers/portunus/default.nix index f42888cbd32a..6bd70ae5519f 100644 --- a/pkgs/servers/portunus/default.nix +++ b/pkgs/servers/portunus/default.nix @@ -6,24 +6,19 @@ buildGoModule rec { pname = "portunus"; - version = "2.0.0"; + version = "2.1.1"; src = fetchFromGitHub { owner = "majewsky"; repo = "portunus"; rev = "v${version}"; - sha256 = "sha256-jicqH31Q+kDkOvtCg+HStQ4LUUzKm5ZO4utnAkCOLvY="; + sha256 = "sha256-+pMMIutj+OWKZmOYH5NuA4a7aS5CD+33vAEC9bJmyfM="; }; buildInputs = [ libxcrypt-legacy ]; vendorHash = null; - postInstall = '' - mv $out/bin/{,portunus-}orchestrator - mv $out/bin/{,portunus-}server - ''; - meta = with lib; { description = "Self-contained user/group management and authentication service"; homepage = "https://github.com/majewsky/portunus";