biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / stag / default.nix
blob711d549d1ac35d96e5d34cb4946f7d41e7a07088
1 { lib, stdenv, fetchFromGitHub, curses, fetchpatch }:
3 stdenv.mkDerivation (finalAttrs: {
4   pname = "stag";
5   version = "1.0.0";
7   src = fetchFromGitHub {
8     owner = "seenaburns";
9     repo = "stag";
10     rev = "v${finalAttrs.version}";
11     hash = "sha256-O3iHTsaFs1l9sQV7hOoh4F+w3t28JCNlwT33zBmUP/s=";
12   };
14   patches = [
15     # fix compilation on aarch64 https://github.com/seenaburns/stag/pull/19
16     (fetchpatch {
17       url = "https://github.com/seenaburns/stag/commit/0a5a8533d0027b2ee38d109adb0cb7d65d171497.diff";
18       hash = "sha256-fqcsStduL3qfsp5wLJ0GLfEz0JRnOqsvpXB4gdWwVzg=";
19     })
20     # fix compilation on darwin, add explicit void parameter https://github.com/seenaburns/stag/pull/22
21     (fetchpatch {
22       url = "https://github.com/seenaburns/stag/commit/bf831b0fa47fdc3654a659c1bc12b584c5bad18c.patch";
23       hash = "sha256-C7S+phw2K26EUweKLDVZey/bUeYcTohdGcf7wixYIdM=";
24     })
25   ];
27   buildInputs = [ curses ];
29   installPhase = ''
30     make install PREFIX=$out
31   '';
33   meta = with lib; {
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;
39     mainProgram = "stag";
40   };