Skip to content

Installing steam on 21.05 results in getting a package is broken message #148628

Closed

Description

@mainrs

Describe the bug

Installing steam on the release-21.05 channel errors with the message that the package is broken. However, the derivation doesn't have the broken flag set.

Additional context

I switched my nixos channel from nixos-unstable to nixos-21.05 before doing it. For that I ran the following commands:

sudo nix-channel --remove nixos
sudo nix-channel --add https://nixos.org/channels/nixos-21.05 nixos
sudo nix-channel --update

# add steam using `programs.steam.enable = true;`
sudo nixos-rebuild --update boot

My config:

nixpkgs.config = {
    allowUnfree = true;
    packageOverrides = pkgs: {
      nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/7e9776db925112f042f1a83099bf7cfaecbe84c8.tar.gz") {
        inherit pkgs;
      };
      unstable = import <nixos-unstable> {
        config = config.nixpkgs.config;
      };

      steam = pkgs.steam.override {
        extraPkgs = pkgs': with pkgs'; [ qt5.full jdk8 flite ];
        nativeOnly = true;
        withJava = true;
      };
    };
  };
programs.steam.enable = true;

Removing the package override for steam works as expected. I think nix picks up that the package is broken on unstable but not on the release. but it still errors.

Notify maintainers

@jagajaga @jonringer

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.81, NixOS, 21.05.4438.5854a24cfcc (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20211006_53e4794`
 - channels(me): `"nixos-21.05.3801.83667ff60a8, nixos-unstable-21.11pre323695.9aeeb7574fb"`
 - channels(root): `"nixos-21.05.4438.5854a24cfcc, nixos-unstable-22.05pre335103.6daa4a5c045"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Activity

  1. added
    0.kind: bug
    on Dec 4, 2021
  2. added
    6.topic: steam
    on Dec 6, 2021
  3. SuperSamus commented on Apr 17, 2022

    @SuperSamus
    Contributor

    The reason it was broken is probably because of nativeOnly.
    Now it's not an option anymore, if that was the case then this can be closed.

  4. jonringer commented on Apr 19, 2022

    @jonringer
    Contributor

    nativeOnly was removed in master. However, 21.05 and 21.11 still have it... I'll close this as it's going to be a non-issue in 22.05

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

    0.kind: bug6.topic: steam

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions