summary refs log tree commit diff
path: root/pkgs/tools/misc/neofetch
diff options
context:
space:
mode:
authorMuhammad Herdiansyah <herdiansyah@openmailbox.org>2017-07-24 17:25:38 +0700
committerMuhammad Herdiansyah <herdiansyah@netc.eu>2017-08-10 19:32:57 +0700
commitb5ea89f50c66d23ad3119aa03186fda858b6c943 (patch)
treed72b7915114d749cfa8155b28fe1bfc8fc59dfa4 /pkgs/tools/misc/neofetch
parentc2ef89aac97b6eb8e3efe53173ec8eea7d2ebf17 (diff)
downloadnixlib-b5ea89f50c66d23ad3119aa03186fda858b6c943.tar
nixlib-b5ea89f50c66d23ad3119aa03186fda858b6c943.tar.gz
nixlib-b5ea89f50c66d23ad3119aa03186fda858b6c943.tar.bz2
nixlib-b5ea89f50c66d23ad3119aa03186fda858b6c943.tar.lz
nixlib-b5ea89f50c66d23ad3119aa03186fda858b6c943.tar.xz
nixlib-b5ea89f50c66d23ad3119aa03186fda858b6c943.tar.zst
nixlib-b5ea89f50c66d23ad3119aa03186fda858b6c943.zip
neofetch: 3.0.1 -> 3.2.0
Diffstat (limited to 'pkgs/tools/misc/neofetch')
-rw-r--r--pkgs/tools/misc/neofetch/default.nix27
1 files changed, 17 insertions, 10 deletions
diff --git a/pkgs/tools/misc/neofetch/default.nix b/pkgs/tools/misc/neofetch/default.nix
index 2ecaae6a33f4..ea2b863cd776 100644
--- a/pkgs/tools/misc/neofetch/default.nix
+++ b/pkgs/tools/misc/neofetch/default.nix
@@ -1,26 +1,33 @@
-{ stdenv, fetchFromGitHub }:
+{ stdenv, fetchFromGitHub, fetchpatch }:
 
 stdenv.mkDerivation rec {
   name = "neofetch-${version}";
-  version = "3.0.1";
+  version = "3.2.0";
   src = fetchFromGitHub {
     owner = "dylanaraps";
     repo = "neofetch";
     rev = version;
-    sha256 = "0ccdgyn9m7vbrmjlsxdwv7cagsdg8hy8x4n1mx334pkqvl820jjn";
+    sha256 = "1skkclvkqayqsbywja2fhv18l4rn9kg2da6bkip82zrwd713akl3";
   };
 
-  patchPhase = ''
-    substituteInPlace ./neofetch \
-    --replace "/usr/share" "$out/share"
-  '';
+  # 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";
+    })
+  ];
+
 
   dontBuild = true;
 
 
   makeFlags = [
-    "DESTDIR=$(out)"
-    "PREFIX="
+    "PREFIX=$(out)"
+    "SYSCONFDIR=$(out)/etc"
   ];
 
   meta = with stdenv.lib; {
@@ -28,6 +35,6 @@ stdenv.mkDerivation rec {
     homepage = https://github.com/dylanaraps/neofetch;
     license = licenses.mit;
     platforms = platforms.all;
-    maintainers = with maintainers; [ alibabzo ];
+    maintainers = with maintainers; [ alibabzo konimex ];
   };
 }