Added support for NixOS

This commit is contained in:
Dylan 2016-02-14 23:29:04 +11:00
parent d2df70f77d
commit 6daade00ad
3 changed files with 27 additions and 1 deletions

1
1.2.md
View File

@ -19,6 +19,7 @@ Fetch now supports:
- `Trisquel`
- `Solus`
- `Peppermint`
- `NixOS`
### Makefile

21
ascii/distro/nixos Normal file
View File

@ -0,0 +1,21 @@
"\
${c1} ::::. ${c2}'::::: ::::'
${c1} '::::: ${c2}':::::. ::::'
${c1} ::::: ${c2}'::::.:::::
${c1} .......:::::..... ${c2}::::::::
${c1} ::::::::::::::::::. ${c2}:::::: ${c1}::::.
${c1} ::::::::::::::::::::: ${c2}:::::. ${c1}.::::'
${c2} ..... ::::' ${c1}:::::'
${c2} ::::: '::' ${c1}:::::'
${c2} ........::::: ' ${c1}:::::::::::.
${c2}::::::::::::: ${c1}:::::::::::::
${c2} ::::::::::: ${c1}.. ${c1}:::::
${c2} .::::: ${c1}.::: ${c1}:::::
${c2} .::::: ${c1}::::: ${c1}''''' ${c2}.....
${c2} ::::: ${c1}':::::. ${c2}......:::::::::::::'
${c2} ::: ${c1}::::::. ${c2}':::::::::::::::::'
${c1} .:::::::: ${c2}'::::::::::
${c1} .::::''::::. ${c2}'::::.
${c1} .::::' ::::. ${c2}'::::.
${c1} .:::: :::: ${c2}'::::.
"

6
fetch
View File

@ -626,6 +626,10 @@ getpackages () {
packages="$(ls -d /var/db/pkg/*/* | wc -l)"
;;
"NixOS"*)
packages="$(ls -d -1 /nix/store/*/ | wc -l)"
;;
"Fedora"* | "openSUSE"* | "Red Hat"* | "CentOS"* | "Mageia"* | "PCLinuxOS"* |\
"BLAG"*)
packages="$(rpm -qa | wc -l)"
@ -1684,7 +1688,7 @@ getascii () {
c2=$(color 8)
;;
"Trisquel"*)
"Trisquel"* | "NixOS"*)
c1=$(color 4)
c2=$(color 6)
;;