Skip to content

profile: add installable matcher#10198

Open
bobvanderlinden wants to merge 2 commits intoNixOS:masterfrom
bobvanderlinden:profile-match-url
Open

profile: add installable matcher#10198
bobvanderlinden wants to merge 2 commits intoNixOS:masterfrom
bobvanderlinden:profile-match-url

Conversation

@bobvanderlinden
Copy link
Member

This allows removing and upgrading packages using flake urls.

Motivation

Currently it can be surprising that using the same argument for installing a package will not work for removing them:

$ nix profile install nixpkgs#firefox
$ nix profile remove nixpkgs#firefox

To make this work this PR adds another matcher (like in #10166), but now for 'installables': flake#package or any of the variants thereof.

Context

Fixes #10064

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@github-actions github-actions bot added new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority labels Mar 8, 2024
@bobvanderlinden bobvanderlinden marked this pull request as ready for review March 8, 2024 22:04
This allows removing and upgrading packages using flake urls.
@bobvanderlinden
Copy link
Member Author

@edolstra could you have a look?

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

Labels

new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nix profile: match entries using flake uri

1 participant