1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-10 21:29:48 +01:00

home-manager: sort list packages output

Fixes #4788
This commit is contained in:
Robert Helgesson 2023-12-18 23:05:17 +01:00 committed by Mikilio
parent 32a4186681
commit 32bb7a2ace
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F

View file

@ -722,7 +722,7 @@ function doListPackages() {
local outPath local outPath
outPath="$($LIST_OUTPATH_CMD | grep -o '/.*home-manager-path$')" outPath="$($LIST_OUTPATH_CMD | grep -o '/.*home-manager-path$')"
if [[ -n "$outPath" ]] ; then if [[ -n "$outPath" ]] ; then
nix-store -q --references "$outPath" | sed 's/[^-]*-//' nix-store -q --references "$outPath" | sed 's/[^-]*-//' | sort --ignore-case
else else
_i 'No home-manager packages seem to be installed.' >&2 _i 'No home-manager packages seem to be installed.' >&2
fi fi