Skip to content

Commit

Permalink
tasks: allow bash-interactive for task exports
Browse files Browse the repository at this point in the history
bash on nixpkgs master has been set to 'interactive' by default.
This changes the pname of the derivation, which then triggers an
assertion in devenv.

Fixes #1744.
  • Loading branch information
sandydoo committed Feb 22, 2025
1 parent 8ebde3c commit b799e75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/tasks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ in

assertions = [
{
assertion = lib.all (task: task.binary == "bash" || task.exports == [ ]) (lib.attrValues config.tasks);
message = "The 'exports' option can only be set when 'binary' is set to 'bash'.";
assertion = lib.all (task: lib.hasPrefix "bash" task.binary || task.exports == [ ]) (lib.attrValues config.tasks);
message = "The 'exports' option for a task can only be set when 'binary' is set to 'bash' or 'bash-interactive'.";
}
];

Expand Down

0 comments on commit b799e75

Please sign in to comment.