Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flake: fill apps.default #277

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bbjubjub2494
Copy link

Closes #270

Copy link
Contributor

@milahu milahu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this fixes

nix-gui $ nix run . 
error: attribute 'defaultApp.x86_64-linux' should have type 'derivation'

Copy link

@Zahrun Zahrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to go past the issue mentionned by executing nix run github:lourkeur/nix-gui/fix_270

However, I was still not able to run nix-gui due to this error:

Traceback (most recent call last):
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/graphics/nav_interface.py", line 57, in set_lookup_key
    self.set_option_path(
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/graphics/nav_interface.py", line 91, in set_option_path
    num_children = len(api.get_option_tree().children(option_path, mode="leaves"))
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/utils/cache.py", line 85, in wrapper
    res = function(*args, **kwargs)
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/options/api.py", line 22, in get_option_tree
    return option_tree.OptionTree(
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/options/option_tree.py", line 68, in __init__
    self._upsert_node_data(
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/options/option_tree.py", line 99, in _upsert_node_data
    if self._is_attribute_set(parent_option_path) and child_option_path.get_end() != '<name>':
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/options/option_tree.py", line 120, in _is_attribute_set
    return isinstance(data.get_type(), types.AttrsOfType)
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/options/option_tree.py", line 30, in get_type
    return types.from_nix_type_str(self._type_string)
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/options/types.py", line 31, in from_nix_type_str
    from_nix_type_str(nix_type_str.removeprefix('attribute set of ').removesuffix('s'))
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/options/types.py", line 217, in from_nix_type_str
    raise ValueError(nix_type_str)
ValueError: (submodule)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/bin/.nix-gui-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/main.py", line 69, in main
    run_program()
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/main.py", line 50, in run_program
    nix_gui = main_window.NixGuiMainWindow(statemodel)
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/graphics/main_window.py", line 17, in __init__
    nav_interface.OptionNavigationInterface(statemodel=statemodel)
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/graphics/nav_interface.py", line 39, in __init__
    self.set_lookup_key(starting_lookup_key)
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/graphics/nav_interface.py", line 66, in set_lookup_key
    self.revert_to_previous_lookup_key()
  File "/nix/store/9fv944x848m2rc1nscm272sqr52nzwlr-python3.9-nix-gui-0.1.6/lib/python3.9/site-packages/nixui/graphics/nav_interface.py", line 46, in revert_to_previous_lookup_key
    previous_uri = self.uri_stack.pop()
IndexError: pop from an empty deque

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

I can't run nix-gui
3 participants