diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 58c8fc0f1d83..1e9a6fe0f0d8 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -27,6 +27,7 @@ akaWolf = "Artjom Vejsel "; akc = "Anders Claesson "; algorith = "Dries Van Daele "; + alibabzo = "Alistair Bill "; all = "Nix Committers "; ambrop72 = "Ambroz Bizjak "; amiddelk = "Arie Middelkoop "; diff --git a/pkgs/tools/misc/neofetch/default.nix b/pkgs/tools/misc/neofetch/default.nix new file mode 100644 index 000000000000..0e992f49c7a2 --- /dev/null +++ b/pkgs/tools/misc/neofetch/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "neofetch-${version}"; + version = "2.0.2"; + src = fetchFromGitHub { + owner = "dylanaraps"; + repo = "neofetch"; + rev = version; + sha256 = "15fpm6nflf6w0c758xizfifvvxrkmcc2hpzrnfw6fcngfqcvajmd"; + }; + + patchPhase = '' + substituteInPlace ./neofetch \ + --replace "/usr/share" "$out/share" + ''; + + dontBuild = true; + + + makeFlags = [ + "DESTDIR=$(out)" + "PREFIX=" + ]; + + meta = with stdenv.lib; { + description = "A fast, highly customizable system info script"; + homepage = https://github.com/dylanaraps/neofetch; + license = licenses.mit; + platforms = platforms.all; + maintainers = with maintainers; [ alibabzo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fbf1abba565c..50dc44fc9063 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2933,6 +2933,8 @@ in ndjbdns = callPackage ../tools/networking/ndjbdns { }; + neofetch = callPackage ../tools/misc/neofetch { }; + nerdfonts = callPackage ../data/fonts/nerdfonts { }; nestopia = callPackage ../misc/emulators/nestopia { };