nixpkgs/pkgs/tools/misc/neofetch/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2017-07-24 11:25:38 +01:00
{ stdenv, fetchFromGitHub, fetchpatch }:
2017-01-22 20:46:31 +00:00
stdenv.mkDerivation rec {
name = "neofetch-${version}";
2017-07-24 11:25:38 +01:00
version = "3.2.0";
2017-01-22 20:46:31 +00:00
src = fetchFromGitHub {
owner = "dylanaraps";
repo = "neofetch";
rev = version;
2017-07-24 11:25:38 +01:00
sha256 = "1skkclvkqayqsbywja2fhv18l4rn9kg2da6bkip82zrwd713akl3";
2017-01-22 20:46:31 +00:00
};
2017-07-24 11:25:38 +01:00
# This patch is only needed so that Neofetch 3.2.0 can look for
# configuration file, w3m directory (for fetching images) and ASCII
# directory properly. It won't be needed in subsequent releases.
patches = [
(fetchpatch {
name = "nixos.patch";
url = "https://github.com/konimex/neofetch/releases/download/3.2.0/nixos.patch";
sha256 = "0c6vsa74bxq6qlgbv3rrkhzkpvnq4304s6y2r1bl0sachyakaljy";
})
];
2017-01-22 20:46:31 +00:00
dontBuild = true;
makeFlags = [
2017-07-24 11:25:38 +01:00
"PREFIX=$(out)"
"SYSCONFDIR=$(out)/etc"
2017-01-22 20:46:31 +00:00
];
meta = with stdenv.lib; {
description = "A fast, highly customizable system info script";
homepage = https://github.com/dylanaraps/neofetch;
license = licenses.mit;
platforms = platforms.all;
2017-07-24 11:25:38 +01:00
maintainers = with maintainers; [ alibabzo konimex ];
2017-01-22 20:46:31 +00:00
};
}