Skip to content

Commit

Permalink
Merge pull request #1338 from tennox/deno-pkg
Browse files Browse the repository at this point in the history
deno: add package option
  • Loading branch information
domenkozar authored Jul 22, 2024
2 parents 1d848fc + b5c7447 commit d93779b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/modules/languages/deno.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ in
{
options.languages.deno = {
enable = lib.mkEnableOption "tools for Deno development";
package = lib.mkOption {
type = lib.types.package;
description = "Which package of Deno to use.";
default = pkgs.deno;
defaultText = lib.literalExpression "pkgs.deno";
};
};

config = lib.mkIf cfg.enable {
packages = [
pkgs.deno
cfg.package
];

env.DENO_INSTALL_ROOT = config.env.DEVENV_STATE + "/deno";
Expand Down

0 comments on commit d93779b

Please sign in to comment.