neofetch: 3.0.1 -> 3.2.0

This commit is contained in:
Muhammad Herdiansyah 2017-07-24 17:25:38 +07:00 committed by Muhammad Herdiansyah
parent c2ef89aac9
commit b5ea89f50c
1 changed files with 17 additions and 10 deletions

View File

@ -1,26 +1,33 @@
{ stdenv, fetchFromGitHub }: { stdenv, fetchFromGitHub, fetchpatch }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "neofetch-${version}"; name = "neofetch-${version}";
version = "3.0.1"; version = "3.2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dylanaraps"; owner = "dylanaraps";
repo = "neofetch"; repo = "neofetch";
rev = version; rev = version;
sha256 = "0ccdgyn9m7vbrmjlsxdwv7cagsdg8hy8x4n1mx334pkqvl820jjn"; sha256 = "1skkclvkqayqsbywja2fhv18l4rn9kg2da6bkip82zrwd713akl3";
}; };
patchPhase = '' # This patch is only needed so that Neofetch 3.2.0 can look for
substituteInPlace ./neofetch \ # configuration file, w3m directory (for fetching images) and ASCII
--replace "/usr/share" "$out/share" # 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";
})
];
dontBuild = true; dontBuild = true;
makeFlags = [ makeFlags = [
"DESTDIR=$(out)" "PREFIX=$(out)"
"PREFIX=" "SYSCONFDIR=$(out)/etc"
]; ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
@ -28,6 +35,6 @@ stdenv.mkDerivation rec {
homepage = https://github.com/dylanaraps/neofetch; homepage = https://github.com/dylanaraps/neofetch;
license = licenses.mit; license = licenses.mit;
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ alibabzo ]; maintainers = with maintainers; [ alibabzo konimex ];
}; };
} }