vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / applications / misc / river-tag-overlay / default.nix
blobaf78bab02eac2fa7d9765cb83c304cc7775da5f2
1 { lib
2 , stdenv
3 , fetchFromSourcehut
4 , fetchpatch
5 , wayland
6 , pixman
7 , pkg-config
8 , wayland-scanner
9 }:
11 stdenv.mkDerivation rec {
12   pname = "river-tag-overlay";
13   version = "1.0.0";
15   src = fetchFromSourcehut {
16     owner = "~leon_plickat";
17     repo = pname;
18     rev = "v${version}";
19     hash = "sha256-hLyXdLi/ldvwPJ1oQQsH5wgflQJuXu6vhYw/qdKAV9E=";
20   };
22   patches = [
23     # Backport cross fix.
24     (fetchpatch {
25       url = "https://git.sr.ht/~leon_plickat/river-tag-overlay/commit/791eaadf46482121a4c811ffba13d03168d74d8f.patch";
26       sha256 = "CxSDcweHGup1EF3oD/2vhP6RFoeYorj0BwmlgA3tbPE=";
27     })
28   ];
30   buildInputs = [ pixman wayland ];
31   nativeBuildInputs = [ pkg-config wayland-scanner ];
33   makeFlags = [
34     "DESTDIR=${placeholder "out"}"
35     "PREFIX="
36   ];
38   meta = with lib; {
39     description = "Pop-up showing tag status";
40     homepage = "https://sr.ht/~leon_plickat/river-tag-overlay";
41     license = licenses.gpl3Only;
42     maintainers = with maintainers; [ edrex ];
43     platforms = platforms.linux;
44     mainProgram = "river-tag-overlay";
45   };