git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #28104 from konimex/neofetch

neofetch: 3.0.1 -> 3.2.0

commita960f32618fb9f55f163a9ce1e3cefe9bfa0c233 authorJörg Thalheim <Mic92@users.noreply.github.com> dateThu 10 Aug 2017, 15:41 (9 years ago) parentc2ef89ab5ea89f
1 file changed+17−10
pkgs/tools/misc/neofetch/default.nix+17−10
pkgs/tools/misc/neofetch/default.nix+17−10
@@ -1,26 +1,33 @@
1−{ stdenv, fetchFromGitHub }:
1+{ stdenv, fetchFromGitHub, fetchpatch }:
22
33stdenv.mkDerivation rec {
44 name = "neofetch-${version}";
5− version = "3.0.1";
5+ version = "3.2.0";
66 src = fetchFromGitHub {
77 owner = "dylanaraps";
88 repo = "neofetch";
99 rev = version;
10− sha256 = "0ccdgyn9m7vbrmjlsxdwv7cagsdg8hy8x4n1mx334pkqvl820jjn";
10+ sha256 = "1skkclvkqayqsbywja2fhv18l4rn9kg2da6bkip82zrwd713akl3";
1111 };
1212
13− patchPhase = ''
14− substituteInPlace ./neofetch \
15− --replace "/usr/share" "$out/share"
16− '';
13+ # This patch is only needed so that Neofetch 3.2.0 can look for
14+ # configuration file, w3m directory (for fetching images) and ASCII
15+ # directory properly. It won't be needed in subsequent releases.
16+ patches = [
17+ (fetchpatch {
18+ name = "nixos.patch";
19+ url = "https://github.com/konimex/neofetch/releases/download/3.2.0/nixos.patch";
20+ sha256 = "0c6vsa74bxq6qlgbv3rrkhzkpvnq4304s6y2r1bl0sachyakaljy";
21+ })
22+ ];
23+
1724
1825 dontBuild = true;
1926
2027
2128 makeFlags = [
22− "DESTDIR=$(out)"
23− "PREFIX="
29+ "PREFIX=$(out)"
30+ "SYSCONFDIR=$(out)/etc"
2431 ];
2532
2633 meta = with stdenv.lib; {
@@ -28,6 +35,6 @@ stdenv.mkDerivation rec {
2835 homepage = https://github.com/dylanaraps/neofetch;
2936 license = licenses.mit;
3037 platforms = platforms.all;
31− maintainers = with maintainers; [ alibabzo ];
38+ maintainers = with maintainers; [ alibabzo konimex ];
3239 };
3340}