From 6daade00ad82918dd3516d66beb27bd2c97316be Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 14 Feb 2016 23:29:04 +1100 Subject: [PATCH] Added support for NixOS --- 1.2.md | 1 + ascii/distro/nixos | 21 +++++++++++++++++++++ fetch | 6 +++++- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 ascii/distro/nixos diff --git a/1.2.md b/1.2.md index 227161e7..4e03353d 100644 --- a/1.2.md +++ b/1.2.md @@ -19,6 +19,7 @@ Fetch now supports: - `Trisquel` - `Solus` - `Peppermint` +- `NixOS` ### Makefile diff --git a/ascii/distro/nixos b/ascii/distro/nixos new file mode 100644 index 00000000..b4bcf04c --- /dev/null +++ b/ascii/distro/nixos @@ -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}'::::. +" diff --git a/fetch b/fetch index 40d90f19..ddab0b23 100755 --- a/fetch +++ b/fetch @@ -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) ;;