Skip to content

Commit

Permalink
kandim: fix update script and limit to main package
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcstephens committed Dec 3, 2024
1 parent 59a6058 commit c4d13b4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/by-name/ka/kanidm/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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; };
Expand Down

0 comments on commit c4d13b4

Please sign in to comment.