1{ lib, stdenvNoCC, fetchFromGitHub, bash }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "bfetch";
5 version = "unstable-2021-05-21";
6
7 src = fetchFromGitHub {
8 owner = "NNBnh";
9 repo = pname;
10 rev = "ef88e9d3f815e5074efc8ef4b7f32be6818130f2";
11 sha256 = "sha256-jS9zI8b+z3KbI+LeHFwIMJfEmAKSzO8HRZ2rk35hJCk=";
12 };
13
14 buildInputs = [ bash ];
15
16 postPatch = ''
17 patchShebangs --host bin/bfetch
18 '';
19
20 makeFlags = [ "PREFIX=$(out)" ];
21
22 meta = with lib; {
23 description = "A SuperB general-purpose fetch displayer written in portable sh";
24 homepage = "https://github.com/NNBnh/bfetch";
25 license = licenses.gpl3Only;
26 platforms = platforms.all;
27 maintainers = with maintainers; [ fortuneteller2k ];
28 };
29}