From f03bf83b1ee1c628626523553bbee8d45f6db51a Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Fri, 9 Aug 2024 01:12:30 +0000 Subject: [PATCH 1/2] kanidm: 1.2.3 -> 1.3.1 https://github.com/kanidm/kanidm/releases/tag/v1.3.0 https://github.com/kanidm/kanidm/releases/tag/v1.3.1 --- pkgs/by-name/ka/kanidm/package.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/ka/kanidm/package.nix b/pkgs/by-name/ka/kanidm/package.nix index 855bd8a12526..12bd73d1ef34 100644 --- a/pkgs/by-name/ka/kanidm/package.nix +++ b/pkgs/by-name/ka/kanidm/package.nix @@ -20,16 +20,16 @@ let in rustPlatform.buildRustPackage rec { pname = "kanidm"; - version = "1.2.3"; + version = "1.3.1"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-J02IbAY5lyoMaq6wJiHizqeFBd5hB6id2YMPxlPsASM="; + hash = "sha256-vjYbj8wIrnVCrokmXv6h4V/n02nKtUQ/mh1xosXj4IE="; }; - cargoHash = "sha256-JuTKHXpEhWga2vAZhCpyPFy4w6+9UaasD70oBcrr0Rw="; + cargoHash = "sha256-ASDfIpwvgYR3vukhtpXJWles5ErytUpW2VjYIpidyWk="; KANIDM_BUILD_PROFILE = "release_nixos_${arch}"; @@ -41,13 +41,15 @@ rustPlatform.buildRustPackage rec { cpu_flags = if stdenv.isx86_64 then "x86_64_legacy" else "none"; default_config_path = "/etc/kanidm/server.toml"; default_unix_shell_path = "${lib.getBin bashInteractive}/bin/bash"; + htmx_ui_pkg_path = "@htmx_ui_pkg_path@"; web_ui_pkg_path = "@web_ui_pkg_path@"; }; in '' cp ${format profile} libs/profiles/${KANIDM_BUILD_PROFILE}.toml substituteInPlace libs/profiles/${KANIDM_BUILD_PROFILE}.toml \ - --replace '@web_ui_pkg_path@' "${placeholder "out"}/ui" + --replace '@htmx_ui_pkg_path@' "${placeholder "out"}/ui/hpkg" \ + --replace '@web_ui_pkg_path@' "${placeholder "out"}/ui/pkg" ''; nativeBuildInputs = [ @@ -67,8 +69,9 @@ rustPlatform.buildRustPackage rec { postBuild = '' # We don't compile the wasm-part form source, as there isn't a rustc for # wasm32-unknown-unknown in nixpkgs yet. - mkdir $out - cp -r server/web_ui/pkg $out/ui + mkdir -p $out/ui + cp -r server/web_ui/pkg $out/ui/pkg + cp -r server/core/static $out/ui/hpkg ''; # Otherwise build breaks on some unused code From a29f18d7a6f4c3a8c0978a4f159bfd01b40f5d85 Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Sat, 10 Aug 2024 03:12:23 +0000 Subject: [PATCH 2/2] kanidm: 1.3.1 -> 1.3.2 https://github.com/kanidm/kanidm/releases/tag/v1.3.0 --- pkgs/by-name/ka/kanidm/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ka/kanidm/package.nix b/pkgs/by-name/ka/kanidm/package.nix index 12bd73d1ef34..febfec0c16f9 100644 --- a/pkgs/by-name/ka/kanidm/package.nix +++ b/pkgs/by-name/ka/kanidm/package.nix @@ -20,16 +20,16 @@ let in rustPlatform.buildRustPackage rec { pname = "kanidm"; - version = "1.3.1"; + version = "1.3.2"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-vjYbj8wIrnVCrokmXv6h4V/n02nKtUQ/mh1xosXj4IE="; + hash = "sha256-YFmWZlDcsSk+7EGkoK0SkAhNsrIQa55IRIVqisX3zqE="; }; - cargoHash = "sha256-ASDfIpwvgYR3vukhtpXJWles5ErytUpW2VjYIpidyWk="; + cargoHash = "sha256-8ZENe576gqm+FkQPCgz6mScqdacHilARFWmfe+kDL2A="; KANIDM_BUILD_PROFILE = "release_nixos_${arch}";