Skip to content

pkgs.system deprecated - use pkgs.stdenv.hostPlatform.system (eval warning) #1

Description

@MichaelFisher1997

Consumers get this evaluation warning on every build against nixpkgs 26.05+:

evaluation warning: 'system' has been renamed to/replaced by 'stdenv.hostPlatform.system'

Location: flake.nix line 187:

default = self.packages.${pkgs.system}.default;

Fix (one-liner):

-  default = self.packages.${pkgs.system}.default;
+  default = self.packages.${pkgs.stdenv.hostPlatform.system}.default;

(Line 188's defaultText is just literal docs text - fine to leave, or update for consistency.)

(found while auditing the home-manager config that consumes this flake)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions