Improve package counting for NixOS

This commit is contained in:
Konrad Borowski
2020-06-15 18:04:53 +02:00
parent da1ef38dad
commit 46a39ad5a2

View File

@@ -1368,7 +1368,7 @@ detectpkgs () {
'Gentoo'|'Sabayon'|'Funtoo'|'Kogaion')
pkgs=$(ls -d /var/db/pkg/*/* | wc -l) ;;
'NixOS')
pkgs=$(ls -d -1 /nix/store/*/ | wc -l) ;;
pkgs=$(nix path-info -r /run/current-system | wc -l) ;;
'Guix System')
pkgs=$(guix package --list-installed | wc -l) ;;
'ALDOS'|'Fedora'|'Fux'|'Korora'|'BLAG'|'Chapeau'|'openSUSE'|'SUSE Linux Enterprise'|'Red Hat Enterprise Linux'| \