From 15b4a3702714043c0f5d4b273bd1cbbde2dccf72 Mon Sep 17 00:00:00 2001 From: Alistair Bill Date: Sun, 22 Jan 2017 20:46:31 +0000 Subject: neofetch: init at 2.0.2 --- pkgs/tools/misc/neofetch/default.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/tools/misc/neofetch/default.nix (limited to 'pkgs/tools/misc/neofetch/default.nix') diff --git a/pkgs/tools/misc/neofetch/default.nix b/pkgs/tools/misc/neofetch/default.nix new file mode 100644 index 00000000000..0e992f49c7a --- /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 ]; + }; +} -- cgit 1.4.1