diff --git a/pkgs/by-name/ka/kanidm/generic.nix b/pkgs/by-name/ka/kanidm/generic.nix index 5c56898aae553..5bbf2a135eab1 100644 --- a/pkgs/by-name/ka/kanidm/generic.nix +++ b/pkgs/by-name/ka/kanidm/generic.nix @@ -116,13 +116,17 @@ rustPlatform.buildRustPackage rec { inherit (nixosTests) kanidm kanidm-provisioning; }; - updateScript = nix-update-script { + updateScript = lib.optionals (!enableSecretProvisioning) (nix-update-script { # avoid spurious releases and tags such as "debs" extraArgs = [ "-vr" "v(.*)" + "--override-filename" + "pkgs/by-name/ka/kanidm/${ + builtins.replaceStrings [ "." ] [ "_" ] (lib.versions.majorMinor kanidm.version) + }.nix" ]; - }; + }); inherit enableSecretProvisioning; withSecretProvisioning = kanidm.override { enableSecretProvisioning = true; };