about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/neofetch/default.nix
blob: 1826d6846d4273fcea05d8ecbc7242b4bf3ff420 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, stdenvNoCC, fetchFromGitHub, bash }:

stdenvNoCC.mkDerivation rec {
  pname = "neofetch";
  version = "7.1.0";

  src = fetchFromGitHub {
    owner = "dylanaraps";
    repo = "neofetch";
    rev = version;
    sha256 = "0i7wpisipwzk0j62pzaigbiq42y1mn4sbraz4my2jlz6ahwf00kv";
  };

  strictDeps = true;
  buildInputs = [ bash ];
  postPatch = ''
    patchShebangs --host neofetch
  '';

  makeFlags = [
    "PREFIX=${placeholder "out"}"
    "SYSCONFDIR=${placeholder "out"}/etc"
  ];

  meta = with 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 konimex ];
  };
}