kanidm-provision: 1.1.2 -> 1.2.0

This commit is contained in:
Defelo
2025-04-08 17:39:43 +02:00
parent f72f009114
commit 32dd44ab11
2 changed files with 22 additions and 3 deletions
@@ -563,6 +563,16 @@ in
default = null;
};
imageFile = mkOption {
description = ''
Application image to display in the WebUI.
Kanidm supports "image/jpeg", "image/png", "image/gif", "image/svg+xml", and "image/webp".
The image will be uploaded each time kanidm-provision is run.
'';
type = types.nullOr types.path;
default = null;
};
enableLocalhostRedirects = mkOption {
description = "Allow localhost redirects. Only for public clients.";
type = types.bool;
+12 -3
View File
@@ -2,23 +2,32 @@
lib,
rustPlatform,
fetchFromGitHub,
yq,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "kanidm-provision";
version = "1.1.2";
version = "1.2.0";
src = fetchFromGitHub {
owner = "oddlama";
repo = "kanidm-provision";
tag = "v${finalAttrs.version}";
hash = "sha256-pgPjkj0nMb5j3EvyJTTDpfmh0WigAcMzoleF5EOqBAM=";
hash = "sha256-+NQJEAJ0DqKEV1cYZN7CLzGoBJNUL3SQAMmxRQG5DMI=";
};
postPatch = ''
tomlq -ti '.package.version = "${finalAttrs.version}"' Cargo.toml
'';
useFetchCargoVendor = true;
cargoHash = "sha256-kbctfPhEF1PdVLjE62GyLDzjOnZxH/kOWUS4x2vd/+8=";
cargoHash = "sha256-uo/TGyfNChq/t6Dah0HhXhAwktyQk0V/wewezZuftNk=";
nativeBuildInputs = [
yq # for `tomlq`
];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";