1{ lib, stdenvNoCC, fetchFromGitHub, bash, scdoc }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "fetchutils";
5 version = "unstable-2021-03-16";
6
7 src = fetchFromGitHub {
8 owner = "kiedtl";
9 repo = pname;
10 rev = "882781a297e86f4ad4eaf143e0777fb3e7c69526";
11 sha256 = "sha256-ONrVZC6GBV5v3TeBekW9ybZjDHF3FNyXw1rYknqKRbk=";
12 };
13
14 buildInputs = [ bash scdoc ];
15
16 installFlags = [ "PREFIX=$(out)/" ];
17
18 postPatch = ''
19 patchShebangs --host src/*
20 '';
21
22 meta = with lib; {
23 description = "A collection of small shell utilities to fetch system information";
24 homepage = "https://github.com/lptstr/fetchutils";
25 license = licenses.mit;
26 platforms = platforms.unix;
27 maintainers = with maintainers; [ moni ];
28 };
29}