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

Add a flake for nixos-appstream-data #1

Merged
merged 1 commit into from
Apr 15, 2024
Merged

Conversation

korfuri
Copy link
Contributor

@korfuri korfuri commented Apr 11, 2024

Exposing nixos-appstream-data as a flake will allow nix-software-center to depend on it the flake way, instead of via an IFD. Having nix-software-center use an IFD is problematic because users of that package may run into NixOS/nix#4265

Adding this flake does not cause an API change for non-flake users.

Exposing nixos-appstream-data as a flake will allow
nix-software-center to depend on it the flake way, instead of via an
IFD. Having nix-software-center use an IFD is problematic because
users of that package may run into NixOS/nix#4265

Adding this flake does not cause an API change for non-flake users.
korfuri added a commit to korfuri/nix-software-center that referenced this pull request Apr 11, 2024
I recently added a flake for nixos-appstream-data. This allows us to
depend on that flake instead of doing an IFD to load its
default.nix.

An IFD in nix-software-center is problematic for users who use
flakes and have multiple nixos configurations with different
architectures. Because of NixOS/nix#4265
this causes `nix flake check` to fail for them.

Note that users of nix-software-center that do not rely on the flake
will still need an IFD. I'm not aware of a better way (other than
upstreaming both in nixpkgs).

TODO: point this back to snowfallorg's repo after
snowfallorg/nixos-appstream-data#1 is merged.
@vlinkz vlinkz merged commit 2d559dd into snowfallorg:main Apr 15, 2024
korfuri added a commit to korfuri/nix-software-center that referenced this pull request Apr 15, 2024
I recently added a flake for nixos-appstream-data. This allows us to
depend on that flake instead of doing an IFD to load its
default.nix.

An IFD in nix-software-center is problematic for users who use
flakes and have multiple nixos configurations with different
architectures. Because of NixOS/nix#4265
this causes `nix flake check` to fail for them.

Note that users of nix-software-center that do not rely on the flake
will still need an IFD. I'm not aware of a better way (other than
upstreaming both in nixpkgs).

Ref: snowfallorg/nixos-appstream-data#1
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.

2 participants