Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

fix(nix): evaluation warning system renamed to stdenv.hostPlatform.system (#1336)

onelockfe395cb467d3
diff --git a/flake.nix b/flake.nix
index b3ee0732c..16e383b04 100644
--- a/flake.nix
+++ b/flake.nix
@@ -193,7 +193,7 @@
}:
(import ./nix/home-manager-module.nix) {
inherit lib config pkgs;
- worktrunk-pkgs = self.packages.${pkgs.system};
+ worktrunk-pkgs = self.packages.${pkgs.stdenv.hostPlatform.system};
};
};
};
diff --git a/nix/home-manager-module.nix b/nix/home-manager-module.nix
index 0cea31375..024e7935b 100644
--- a/nix/home-manager-module.nix
+++ b/nix/home-manager-module.nix
@@ -16,12 +16,12 @@ in
package = lib.mkOption {
type = lib.types.package;
default = worktrunk-pkgs.worktrunk;
- defaultText = lib.literalExpression "inputs.worktrunk.packages.\${system}.worktrunk";
- example = lib.literalExpression "inputs.worktrunk.packages.\${system}.worktrunk-with-git-wt";
+ defaultText = lib.literalExpression "inputs.worktrunk.packages.\${stdenv.hostPlatform.system}.worktrunk";
+ example = lib.literalExpression "inputs.worktrunk.packages.\${stdenv.hostPlatform.system}.worktrunk-with-git-wt";
description = ''
The worktrunk package to use.
- Use `inputs.worktrunk.packages.''${pkgs.system}.worktrunk-with-git-wt` to install as git-wt
+ Use `inputs.worktrunk.packages.''${pkgs.stdenv.hostPlatform.system}.worktrunk-with-git-wt` to install as git-wt
so `git wt <command>` works as a git subcommand. Primarily useful on Windows
where `wt` conflicts with Windows Terminal.
'';