1 { lib, stdenv, fetchFromGitHub, curses, fetchpatch }:
3 stdenv.mkDerivation (finalAttrs: {
7 src = fetchFromGitHub {
10 rev = "v${finalAttrs.version}";
11 hash = "sha256-O3iHTsaFs1l9sQV7hOoh4F+w3t28JCNlwT33zBmUP/s=";
15 # fix compilation on aarch64 https://github.com/seenaburns/stag/pull/19
17 url = "https://github.com/seenaburns/stag/commit/0a5a8533d0027b2ee38d109adb0cb7d65d171497.diff";
18 hash = "sha256-fqcsStduL3qfsp5wLJ0GLfEz0JRnOqsvpXB4gdWwVzg=";
20 # fix compilation on darwin, add explicit void parameter https://github.com/seenaburns/stag/pull/22
22 url = "https://github.com/seenaburns/stag/commit/bf831b0fa47fdc3654a659c1bc12b584c5bad18c.patch";
23 hash = "sha256-C7S+phw2K26EUweKLDVZey/bUeYcTohdGcf7wixYIdM=";
27 buildInputs = [ curses ];
30 make install PREFIX=$out
34 homepage = "https://github.com/seenaburns/stag";
35 description = "Terminal streaming bar graph passed through stdin";
36 license = licenses.bsdOriginal;
37 maintainers = with maintainers; [ matthiasbeyer ];
38 platforms = platforms.unix;