1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pkg-config,
6 ncurses,
7 which,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "progress";
12 version = "0.17";
13
14 src = fetchFromGitHub {
15 owner = "Xfennec";
16 repo = "progress";
17 rev = "v${version}";
18 sha256 = "sha256-riewkageSZIlwDNMjYep9Pb2q1GJ+WMXazokJGbb4bE=";
19 };
20
21 nativeBuildInputs = [
22 pkg-config
23 which
24 ];
25 buildInputs = [ ncurses ];
26
27 makeFlags = [ "PREFIX=$(out)" ];
28
29 meta = with lib; {
30 homepage = "https://github.com/Xfennec/progress";
31 description = "Tool that shows the progress of coreutils programs";
32 license = licenses.gpl3;
33 platforms = platforms.linux ++ platforms.darwin;
34 maintainers = with maintainers; [ pSub ];
35 mainProgram = "progress";
36 };
37}